uloop: improve edge trigger reliability on mac os x
[project/libubox.git] / usock.h
1 #ifndef USOCK_H_
2 #define USOCK_H_
3
4 #define USOCK_TCP 0
5 #define USOCK_UDP 1
6
7 #define USOCK_SERVER 0x0100
8 #define USOCK_NOCLOEXEC 0x0200
9 #define USOCK_NONBLOCK 0x0400
10 #define USOCK_NUMERIC 0x0800
11 #define USOCK_IPV6ONLY 0x2000
12 #define USOCK_IPV4ONLY 0x4000
13 #define USOCK_UNIX 0x8000
14
15 int usock(int type, const char *host, const char *service);
16
17 #endif /* USOCK_H_ */