int CloseSocket( int s );
int Dup2Socket( int fd1, int fd2 );
int getdtablesize();
struct hostent * gethostbyaddr( char * addr, int len, int type );
struct hostent * gethostbyname( char * name );
long gethostid();
int gethostname( char * name, int namelen );
struct netent * getnetbyaddr( long net, int type );
struct netent * getnetbyname( char * name );
int getpeername( int s, struct sockaddr * name, int * namelen );
struct protoent * getprotobyname( char * name );
struct protoent * getprotobynumber( int proto );
struct servent * getservbyname( char * name, char * proto );
struct servent * getservbyport( int port, char * proto );
LONG GetSocketEvents( ULONG * eventsp );
int getsockname( int s, struct sockaddr * name, int * namelen );
int getsockopt( int s, int level, int optname, void * optval, void * optlen );
unsigned long inet_addr( const char * cp );
unsigned long Inet_LnaOf( unsigned long in );
unsigned long Inet_MakeAddr( int net, int lna );
unsigned long Inet_NetOf( unsigned long in );
unsigned long inet_network( const char * cp );
char * Inet_NtoA( unsigned long in ); char * Inet_Nto( TAG tag, ... );
int IoctlSocket( int s, unsigned long request, char * argp );
LONG ObtainSocket( LONG id, LONG domain, LONG type, LONG protocol );
int recvfrom( int s, void * buf, int len, int flags, struct sockaddr * from, int * fromlen );
LONG ReleaseCopyOfSocket( LONG sd, LONG id );
LONG ReleaseSocket( LONG sd, LONG id );
int sendto( int s, const void * msg, int len, int flags, const struct sockaddr * to, int tolen );
void SetErrnoPtr( void * ptr, int size );
void SetSocketSignals( ULONG intrmask, ULONG iomask, ULONG urgmask );
int setsockopt( int s, int level, int optname, void * optval, int optlen );
int shutdown( int s, int how );
ULONG SocketBaseTagList( struct TagItem * tagList ); ULONG SocketBaseTags( TAG tag, ... );
int WaitSelect( int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval * timeout, ULONG * sigmask );