<filename>netlib.c</filename> Functions:-This provides socket connectivity. Notes based on the code as of Mon Apr 5 21:38:06 2010 -0400. int netlib_connectsock(const char *host, const char *service, const char *protocol) This attempts to connect the to nominated service on the nominated host using the nominated protocol. On success, the return value is the socket number. On error, an appropriate system defined error code is returned. char *sock2ip(int fd) This makes a call to getpeername using the supplied fd. On success, the returned string is the ip address in dotted notation. On error, "<unknown>" is returned.