summaryrefslogtreecommitdiff
path: root/src/tcp.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-27 03:31:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-27 03:31:35 +0000
commit4793dc0638330ef5296c126d136489228d9521b0 (patch)
tree25623cd2a2388ec9ad16ac04107f0aaef91daac9 /src/tcp.h
parentadded tcp listener list (diff)
listening on tcp sockets works now
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@8 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/tcp.h')
-rw-r--r--src/tcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tcp.h b/src/tcp.h
index a2c50d6..f56ff46 100644
--- a/src/tcp.h
+++ b/src/tcp.h
@@ -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