MINOR: listeners: new function create_listeners
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 06:10:44 +0000 (08:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:49:52 +0000 (11:49 +0200)
commit0de59fd53a117a2878141522acd03e3338320218
tree4562f388dd5ff0c8e461d54b87409dc6dd622f21
parent31794892af34e2c52877928b14f9416a3017d27b
MINOR: listeners: new function create_listeners

This function is used to create a series of listeners for a specific
address and a port range. It automatically calls the matching protocol
handlers to add them to the relevant lists. This way cfgparse doesn't
need to manipulate listeners anymore. As an added bonus, the memory
allocation is checked.
include/proto/listener.h
src/cfgparse.c
src/listener.c