Line | |
---|
1 | //libroar.h: |
---|
2 | |
---|
3 | #ifndef _LIBROARSOCKET_H_ |
---|
4 | #define _LIBROARSOCKET_H_ |
---|
5 | |
---|
6 | #include "libroar.h" |
---|
7 | |
---|
8 | #define ROAR_SOCKET_TYPE_NONE 0 |
---|
9 | #define ROAR_SOCKET_TYPE_UNKNOWN ROAR_SOCKET_TYPE_NONE |
---|
10 | #define ROAR_SOCKET_TYPE_INET 1 |
---|
11 | #define ROAR_SOCKET_TYPE_UNIX 2 |
---|
12 | |
---|
13 | #define ROAR_SOCKET_QUEUE_LEN 8 |
---|
14 | |
---|
15 | #define ROAR_SOCKET_BLOCK 1 |
---|
16 | #define ROAR_SOCKET_NONBLOCK 2 |
---|
17 | |
---|
18 | #define ROAR_SOCKET_MAX_HOSTNAMELEN 64 |
---|
19 | |
---|
20 | int roar_socket_listen (int type, char * host, int port); |
---|
21 | int roar_socket_connect (char * host, int port); |
---|
22 | |
---|
23 | int roar_socket_new_tcp (void); |
---|
24 | int roar_socket_new_unix (void); |
---|
25 | int roar_socket_open (int mode, int type, char * host, int port); |
---|
26 | int roar_socket_open_proxy (int mode, int type, char * host, int port, char * proxy_type); |
---|
27 | |
---|
28 | int roar_socket_nonblock(int fh, int state); |
---|
29 | |
---|
30 | int roar_socket_open_socks4a(int mode, int fh, char * host, int port); |
---|
31 | |
---|
32 | #endif |
---|
33 | |
---|
34 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.