/* tcpblockio.h */ int writeblock( int fd, char *buffer, int nbytes ); int readblock( int fd, char *buffer, int nbytes ); int openclient( int server_port, char *server_node, struct sockaddr_in *server_addr, struct sockaddr_in *client_addr ); int openserver( int server_port, char *server_name, struct sockaddr_in *server_addr ); #ifdef __sun__ /* on SUN's, no standard header file contains a prototype for this function */ /* however, the function is in the standard c library (libc.a) */ extern int gethostname(char *name, size_t namelen); #endif