xnettest

package
v0.11.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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

func LoopbackServer(network string) (net.Listener, <-chan []byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL