network.h revision 70f7524d9adedaee65ac3709ecf31487878540dc
52N/A/* maxmimum string length of IP address */ 52N/A/* returns 1 if IPADDRs are the same */ 6N/A/* Connect to socket with ip address */ 6N/A/* Connect to named UNIX socket */ 377N/A/* Try to let the other side close the connection, if it still isn't 377N/A disconnected after certain amount of time, close it ourself */ 735N/A/* Set TCP_CORK if supported, ie. don't send out partial frames. 6N/A Returns 0 if ok, -1 if failed. */ 6N/A/* Set IP to contain INADDR_ANY for IPv4 or IPv6. The IPv6 any address may 377N/A include IPv4 depending on the system (Linux yes, BSD no). */ 377N/A/* Listen for connections on a socket */ 377N/A/* Listen for connections on an UNIX socket */ 377N/A/* Accept a connection on a socket. Returns -1 for temporary failure, 377N/A -2 for fatal failure */ 6N/A/* Read data from socket, return number of bytes read, -1 = error */ 467N/A/* Transmit data, return number of bytes sent, -1 = error */ 6N/A/* Get IP addresses for host. ips contains ips_count of IPs, they don't need 6N/A to be free'd. Returns 0 = ok, others = error code for net_gethosterror() */ 6N/A/* get error of net_gethostname() */ 302N/A/* return TRUE if host lookup failed because it didn't exist (ie. not 6N/A some error with name server) */ 525N/A/* IPADDR -> char* translation. `host' must be at least MAX_IP_LEN bytes */ 15N/A/* char* -> IPADDR translation. */ 15N/A/* Get socket error */ 15N/A/* Get name of TCP service */