home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Magazine / wwwoffle-2.1.tar.gz / wwwoffle-2.1 / sockets.h < prev    next >
C/C++ Source or Header  |  1997-12-28  |  984b  |  34 lines

  1. /***************************************
  2.   $Header: /home/amb/wwwoffle/RCS/sockets.h 2.4 1997/12/28 15:58:55 amb Exp $
  3.  
  4.   WWWOFFLE - World Wide Web Offline Explorer - Version 2.0a.
  5.   Socket function header file.
  6.   ******************/ /******************
  7.   Written by Andrew M. Bishop
  8.  
  9.   This file Copyright 1996,97 Andrew M. Bishop
  10.   It may be distributed under the GNU Public License, version 2, or
  11.   any higher version.  See section COPYING of the GNU Public license
  12.   for conditions under which this file may be redistributed.
  13.   ***************************************/
  14.  
  15.  
  16. #ifndef SOCKETS_H
  17. #define SOCKETS_H    /*+ To stop multiple inclusions. +*/
  18.  
  19. /* in sockets.c */
  20.  
  21. int OpenClientSocket(char* host, int port);
  22.  
  23. int OpenServerSocket(int port);
  24. int AcceptConnect(int socket);
  25.  
  26. int SocketRemoteName(int socket,char **name,int *ip,int *port);
  27. int SocketLocalName(int socket,char **name,int *ip,int *port);
  28.  
  29. int CloseSocket(int socket);
  30.  
  31. char *GetFQDN(void);
  32.  
  33. #endif /* SOCKETS_H */
  34.