2005-08-08 16:50:13 +04:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
S_TCP,
|
|
|
|
S_UDP
|
|
|
|
};
|
|
|
|
|
2012-08-03 23:30:17 +04:00
|
|
|
int so_socket(int, unsigned char*);
|
|
|
|
void so_connect(int, unsigned char*, unsigned short);
|
|
|
|
void so_getsockname(int, unsigned char*, unsigned short*);
|
|
|
|
void so_bind(int, int, unsigned short, unsigned char*);
|
2005-08-08 16:50:13 +04:00
|
|
|
void so_listen(int);
|
2005-11-07 20:13:41 +03:00
|
|
|
int so_send(int, void*, int, int);
|
|
|
|
int so_recv(int, void*, int, int);
|
2012-08-03 23:30:17 +04:00
|
|
|
int so_accept(int, unsigned char*, unsigned short*);
|
2005-08-08 16:50:13 +04:00
|
|
|
int so_getservbyname(char*, char*, char*);
|
|
|
|
int so_gethostbyname(char*, char**, int);
|
|
|
|
|
|
|
|
char* hostlookup(char*);
|
|
|
|
|