server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDatagram = 1 << 16

MaxDatagram is the maximum length of message that can be received.

Variables

This section is empty.

Functions

This section is empty.

Types

type Servers

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

Servers contains state for a running server (with possibly multiple interfaces/listeners)

func Start

func Start(config *config.Config) (*Servers, error)

Start will start the server asynchronously. See `Wait` to wait until the execution ends.

func (*Servers) Close

func (s *Servers) Close()

Close closes all listening connections

func (*Servers) Wait

func (s *Servers) Wait() error

Wait waits until the end of the execution of the server.

Jump to

Keyboard shortcuts

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