Intial commit
This commit is contained in:
37
prospero/lib/psrv/wais_gw/sockets.h
Normal file
37
prospero/lib/psrv/wais_gw/sockets.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/* WIDE AREA INFORMATION SERVER SOFTWARE:
|
||||
Developed by Thinking Machines Corporation and put into the public
|
||||
domain with no guarantees or restrictions.
|
||||
*/
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef sockets_h
|
||||
#define sockets_h
|
||||
|
||||
#include "cdialect.h"
|
||||
#include "cutil.h"
|
||||
|
||||
#ifndef THINK_C
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
void openServer(long port,long* socket,long size);
|
||||
void acceptClientConnection(long socket,FILE** file);
|
||||
void closeClientConnection(FILE* file);
|
||||
void closeServer(long socket);
|
||||
FILE *connectToServer(char* hostname,long port);
|
||||
void closeConnectionToServer(FILE* file);
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user