DEV: tcploop: add a new "bind" command to bind to ip/port.
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2022 10:03:48 +0000 (12:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Jun 2022 12:42:15 +0000 (14:42 +0200)
commitd493331d47dc2e81986ba44f154981224713a56c
tree02ebe60df89540419418f41933739aa60fa113f2
parentcb284c7a62ff57eb5d05eed8da300c3b3b8961b8
DEV: tcploop: add a new "bind" command to bind to ip/port.

The Listen command automatically relies on it (without passing its
argument), and both Listen and Connect now support working with the
existing socket, so that it's possible to Bind an ip:port on an
existing socket or to create a new one for the purpose of listening
or connecting. It now becomes possible to do:

   tcploop 0 L1234 C8888

to connect from port 1234 to port 8888.
dev/tcploop/tcploop.c