summaryrefslogtreecommitdiff
path: root/src/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.h')
-rw-r--r--src/tcp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tcp.h b/src/tcp.h
index f56ff46..ce559ef 100644
--- a/src/tcp.h
+++ b/src/tcp.h
@@ -34,7 +34,10 @@
enum resolv_type_enum { ANY, IPV4_ONLY, IPV6_ONLY };
typedef enum resolv_type_enum resolv_type_t;
-typedef struct sockaddr_storage tcp_endpoint_t;
+typedef struct {
+ socklen_t len_;
+ struct sockaddr_storage addr_;
+} 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);