#ifndef SOCKHEAD_H #define SOCKHEAD_H 1 #include #include #include #include #include /* ULTRIX didn't like stat with types*/ #include #include #include #include #include #include #include #include /* for inet_ntoa */ #include /* for ctime */ #include #include #include #include #include #include #include /* ** socket functin prototypes */ int sockRead (int,char *,size_t); int sockWrite (int,char *,size_t); int ClientSocket (char *netaddress,u_short port); int ServerSocket (u_short,int); int getConnection (int, u_short,int *,int); int makeConnection(char *,int,char *); int sockGets (int,char *,size_t); int sockPuts (int,char *); int getHostByName (char *host_found,char *check_for); int getPeerInfo (int,char *,char *,u_short *); int atoport (char *,char *); int iread (int,char *,int); struct in_addr *atoaddr(char *); #endif /* SOCKHEAD_H*/