udp

package
Version: v3.46.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PickPort

func PickPort() net.Port

PickPort returns an unused UDP port in the system. The port returned is highly likely to be unused, but not guaranteed.

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.9.1

func (server *Server) Close() error

func (*Server) Start

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL