[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:
1 parent
d0732f9ade
commit
e82080a5f6
5 files changed
+75
-14
No files matched your search
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user