diff options
author | Michael Adam <obnox@samba.org> | 2013-11-08 08:07:08 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-09 13:34:33 +0100 |
commit | 2ebfd456eff002cfba45aa88dad4b2a0cb9edc1a (patch) | |
tree | bf59f92d58694bfc3a5da14fd40e7cef61db38e2 /src/sock.h | |
parent | 070d6215340379cbea7cc404ff4bb450a0ddea8b (diff) | |
download | tinyproxy-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |