/* * This file is provided for use with the unix-socket-faq. It is public * domain, and may be copied freely. There is no copyright on it. The * original work was by Vic Metcalfe (vic@brutus.tlug.org), and any * modifications made to that work were made with the understanding that * the finished work would be in the public domain. * * If you have found a bug, please pass it on to me at the above address * acknowledging that there will be no copyright on your work. * * The most recent version of this file, and the unix-socket-faq can be * found at http://www.interlog.com/~vic/sock-faq/. */ #ifndef _SOCKHELP_H_ #define _SOCKHELP_H_ #include #include #include #include #include #include #include #include #include #include #include #include int atoport(/* char *service, char *proto */); struct in_addr *atoaddr(/* char *address */); int get_connection(/* int socket_type, u_short port, int *listener */); int make_connection(/* char *service, int type, char *netaddress */); int sock_read(/* int sockfd, char *buf, size_t count */); int sock_write(/* int sockfd, const char *buf, size_t count */); int sock_gets(/* int sockfd, char *str, size_t count */); int sock_puts(/* int sockfd, const char *str */); void ignore_pipe(/*void*/); #endif