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>
This commit is contained in:
1 parent
070d621534
commit
2ebfd456ef
3 files changed
+90
-7
No files matched your search
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user