devip.h (469B)
1 enum 2 { 3 S_TCP, 4 S_UDP 5 }; 6 7 int so_socket(int type); 8 void so_connect(int, unsigned long, unsigned short); 9 void so_getsockname(int, unsigned long*, unsigned short*); 10 void so_bind(int, int, unsigned short); 11 void so_listen(int); 12 int so_send(int, void*, int, int); 13 int so_recv(int, void*, int, int); 14 int so_accept(int, unsigned long*, unsigned short*); 15 int so_getservbyname(char*, char*, char*); 16 int so_gethostbyname(char*, char**, int); 17 18 char* hostlookup(char*); 19