From 2ebfd456eff002cfba45aa88dad4b2a0cb9edc1a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Nov 2013 08:07:08 +0100 Subject: 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 --- src/sock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sock.h') 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); -- cgit v1.2.3