Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoopbackPacketServer ¶
func LoopbackPacketServer(network string) (net.PacketConn, <-chan []byte, error)
LoopbackPacketServer starts listening for packets on loopback interface. It returns configured connection and the channel to which it will send received data.
func LoopbackServer ¶
LoopbackServer creates a new network Listener that is binded to the loopback interface and can be used to test tcp connections. Listener must be closed at the end of the tests to release system resources. It returns configured listener and the channel to which it will send received data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.