diff options
Diffstat (limited to 'src/tcp.h')
-rw-r--r-- | src/tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,8 +31,12 @@ #include <sys/types.h> #include <sys/socket.h> +enum resolv_type_enum { ANY, IPV4_ONLY, IPV6_ONLY }; +typedef enum resolv_type_enum resolv_type_t; + typedef struct sockaddr_storage tcp_endpoint_t; char* tcp_endpoint_to_string(tcp_endpoint_t e); +struct addrinfo* tcp_resolve_endpoint(const char* addr, const char* port, resolv_type_t rt); #endif |