sockets.h
Upload User: seven77cht
Upload Date: 2007-01-04
Package Size: 486k
Code Size: 1k
Category:

Browser Client

Development Platform:

Unix_Linux

  1. /***************************************
  2.   $Header: /home/amb/wwwoffle/RCS/sockets.h 2.6 1999/07/05 18:46:16 amb Exp $
  3.   WWWOFFLE - World Wide Web Offline Explorer - Version 2.5.
  4.   Socket function header file.
  5.   ******************/ /******************
  6.   Written by Andrew M. Bishop
  7.   This file Copyright 1996,97,98,99 Andrew M. Bishop
  8.   It may be distributed under the GNU Public License, version 2, or
  9.   any higher version.  See section COPYING of the GNU Public license
  10.   for conditions under which this file may be redistributed.
  11.   ***************************************/
  12. #ifndef SOCKETS_H
  13. #define SOCKETS_H    /*+ To stop multiple inclusions. +*/
  14. /* in sockets.c */
  15. int OpenClientSocket(char* host, int port,int timeout);
  16. int OpenServerSocket(int port);
  17. int AcceptConnect(int socket);
  18. int SocketRemoteName(int socket,char **name,char **ipname,int *port);
  19. int SocketLocalName(int socket,char **name,char **ipname,int *port);
  20. int CloseSocket(int socket);
  21. char *GetFQDN(void);
  22. #endif /* SOCKETS_H */