Documentation ¶
Overview ¶
Package proxy makes it possible to forward a listening socket in situations where the proxy cannot connect to some other address. Instead, it creates two listening sockets, pairs two incoming connections and then moves data back and forth. This matches the behavior of the following socat command: socat -d -d -d UNIX-LISTEN:/tmp/socat,fork TCP-LISTEN:9000,reuseport
The advantage over that command is that both listening sockets are always open, in contrast to the socat solution where the TCP port is only open when there actually is a connection available.
To establish a connection, someone has to poll the proxy with a dialer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.