25 #define USOCK_SERVER 0x0100
26 #define USOCK_NOCLOEXEC 0x0200
27 #define USOCK_NONBLOCK 0x0400
28 #define USOCK_NUMERIC 0x0800
29 #define USOCK_IPV6ONLY 0x2000
30 #define USOCK_IPV4ONLY 0x4000
31 #define USOCK_UNIX 0x8000
34 int usock(
int type,
const char *host,
const char *service);
36 void *addr,
int timeout);
static int usock_inet(int type, const char *host, const char *service, void *addr)
const char * usock_port(int port)
int usock(int type, const char *host, const char *service)
int usock_wait_ready(int fd, int msecs)
int usock_inet_timeout(int type, const char *host, const char *service, void *addr, int timeout)