summaryrefslogtreecommitdiff
path: root/src/sock.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-08 08:07:08 +0100
committerMichael Adam <obnox@samba.org>2013-11-09 13:34:33 +0100
commit2ebfd456eff002cfba45aa88dad4b2a0cb9edc1a (patch)
treebf59f92d58694bfc3a5da14fd40e7cef61db38e2 /src/sock.h
parent070d6215340379cbea7cc404ff4bb450a0ddea8b (diff)
downloadtinyproxy-2ebfd456eff002cfba45aa88dad4b2a0cb9edc1a.tar.gz
tinyproxy-2ebfd456eff002cfba45aa88dad4b2a0cb9edc1a.zip
child: use a list of listen_fds instead of one single listenfd.
This prepares listenting on multiple sockets, which will be ussed to fix listening on the wildcard (listen on both ipv6 and ipv4) and help add the support for multiple Listen statements in the config Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src/sock.h')
-rw-r--r--src/sock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sock.h b/src/sock.h
index 5cca744..f1225ea 100644
--- a/src/sock.h
+++ b/src/sock.h
@@ -28,8 +28,10 @@
#define MAXLINE (1024 * 4)
+#include "vector.h"
+
extern int opensock (const char *host, int port, const char *bind_to);
-extern int listen_sock (const char *addr, uint16_t port);
+extern int listen_sock (const char *addr, uint16_t port, vector_t listen_fds);
extern int socket_nonblocking (int sock);
extern int socket_blocking (int sock);