udp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PickPort added in v1.1.0

func PickPort() net.Port

PickPort returns an unused UDP port of the system.

Types

type Server

type Server struct {
	Port         net.Port
	MsgProcessor func(msg []byte) []byte
	// contains filtered or unexported fields
}

func (*Server) Close added in v1.1.0

func (server *Server) Close() error

func (*Server) Start

func (server *Server) Start() (net.Destination, error)

Jump to

Keyboard shortcuts

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