udp

package
v0.0.0-...-014b5c3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CLEANUP_EVERY = time.Second * 2
View Source
const UDP_PACKET_SIZE = 65507

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

*

  • UDP server implementation

func New

func New(name string, cfg config.Server) (*Server, error)

*

  • Creates new UDP server

func (*Server) Cfg

func (this *Server) Cfg() config.Server

*

  • Returns current server configuration

func (*Server) Start

func (this *Server) Start() error

*

  • Starts server

func (*Server) Stop

func (this *Server) Stop()

*

  • Stop, dropping all connections

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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