udp

package
Version: v0.0.0-...-f6e02f1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentLength = "Content-Length:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer() *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(host string, port int) error

func (*Server) ReadFromLoop

func (s *Server) ReadFromLoop() error

func (*Server) SetHandler

func (s *Server) SetHandler(handler func(*net.UDPAddr, []byte) bool) *Server

func (*Server) WriteTo

func (s *Server) WriteTo(b []byte, address string) (err error)

Source Files

Jump to

Keyboard shortcuts

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