File: sockets.h

package info (click to toggle)
wwwoffle 2.3a-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,452 kB
  • ctags: 1,064
  • sloc: ansic: 10,102; lex: 1,395; sh: 510; makefile: 263; perl: 78
file content (33 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************
  $Header: /home/amb/wwwoffle/RCS/sockets.h 2.5 1998/04/06 18:15:29 amb Exp $

  WWWOFFLE - World Wide Web Offline Explorer - Version 2.1b.
  Socket function header file.
  ******************/ /******************
  Written by Andrew M. Bishop

  This file Copyright 1996,97,98 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 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 */