sock.h (545B)
1 /* See LICENSE file for copyright and license details. */ 2 #ifndef SOCK_H 3 #define SOCK_H 4 5 #include <stddef.h> 6 #include <sys/socket.h> 7 #include <sys/types.h> 8 9 int sock_get_ips(const char *, const char *); 10 int sock_get_uds(const char *, uid_t, gid_t); 11 void sock_rem_uds(const char *); 12 int sock_set_timeout(int, int); 13 int sock_set_nonblocking(int); 14 int sock_get_inaddr_str(const struct sockaddr_storage *, char *, size_t); 15 int sock_same_addr(const struct sockaddr_storage *, 16 const struct sockaddr_storage *); 17 18 #endif /* SOCK_H */