Documentation ¶
Overview ¶
Package stuntest contains helpers for testing STUN clients
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDPServer ¶
func NewUDPServer( t *testing.T, network string, maxMessageSize int, handler func(req []byte) ([]byte, error), ) (net.Addr, func(t *testing.T), error)
NewUDPServer creates an udp server for testing. The supplied handler function will be called with the request and should be used to emulate the server behavior.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.