From 64ef9b77afabde7f0856d908489a5255107606ff Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 28 Nov 2010 23:24:16 +0000 Subject: added length field to tcp_endpoint_t git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@15 e61f0598-a718-4e21-a8f0-0aadfa62ad6b --- src/tcp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tcp.h') 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); -- cgit v1.2.3