sockets.h
上传用户:seven77cht
上传日期:2007-01-04
资源大小:486k
文件大小:1k
- /***************************************
- $Header: /home/amb/wwwoffle/RCS/sockets.h 2.6 1999/07/05 18:46:16 amb Exp $
- WWWOFFLE - World Wide Web Offline Explorer - Version 2.5.
- Socket function header file.
- ******************/ /******************
- Written by Andrew M. Bishop
- This file Copyright 1996,97,98,99 Andrew M. Bishop
- It may be distributed under the GNU Public License, version 2, or
- any higher version. See section COPYING of the GNU Public license
- for conditions under which this file may be redistributed.
- ***************************************/
- #ifndef SOCKETS_H
- #define SOCKETS_H /*+ To stop multiple inclusions. +*/
- /* in sockets.c */
- int OpenClientSocket(char* host, int port,int timeout);
- int OpenServerSocket(int port);
- int AcceptConnect(int socket);
- int SocketRemoteName(int socket,char **name,char **ipname,int *port);
- int SocketLocalName(int socket,char **name,char **ipname,int *port);
- int CloseSocket(int socket);
- char *GetFQDN(void);
- #endif /* SOCKETS_H */