[issue23630] support multiple hosts in create_server/start_server
Yann Sionneau
report at bugs.python.org
Wed Sep 2 16:31:58 CEST 2015
Yann Sionneau added the comment:
About the function's signature to accept multiple hosts & ports, we could
- accept host and port arguments being sequences and then we bind to all host:port combinations. Like if len(host) == N and len(port) == M, we bind to N*M sockets.
or
- accept host and port arguments being sequences and allow repetitions and bind to host:port couples from zip(host, port).
I think the first is "clean", but the second allows more flexibility.
Like for instance binding to IP1:port1 IP2:port2 but not IP1:port2
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23630>
_______________________________________
More information about the Python-bugs-list
mailing list