Documentation ¶
Overview ¶
Package netx contains network hacks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenTCPInterface ¶
func ListenTCPInterface(network string, ifaceName string, port uint16) (net.Listener, []net.TCPAddr, error)
ListenTCPInterface is like net.ListenTCP but can bind to one interface only.
Internally, it listens to all host IP addresses of the given interface. If the interface name is empty, it listens on all addresses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.