[BB#63] conf: Allow multiple Listen statements in the config.

This introduces a list (vector) of addresses instead of
having just one address string.

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Michael Adam committed 2013-11-09 13:34:33 +01:00
1 parent d0732f9ade
commit e82080a5f6
5 files changed
+75 -14

No files matched your search

+3 -1
View File
@@ -21,6 +21,8 @@
#ifndef TINYPROXY_CHILD_H
#define TINYPROXY_CHILD_H
#include "vector.h"
typedef enum {
CHILD_MAXCLIENTS,
CHILD_MAXSPARESERVERS,
@@ -30,7 +32,7 @@ typedef enum {
} child_config_t;
extern short int child_pool_create (void);
extern int child_listening_sock (const char *addr, uint16_t port);
extern int child_listening_sockets (vector_t listen_addrs, uint16_t port);
extern void child_close_sock (void);
extern void child_main_loop (void);
extern void child_kill_children (int sig);