udp

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

Listener is the server-side UDP transport. It reads obfuscated datagrams, and feeds decrypted frames into a core.Router; it registers a Sink per learned peer so the router can also route frames toward UDP clients.

func NewListener

func NewListener(router *core.Router, listen string, password []byte, maxPadding int) (*Listener, error)

func (*Listener) Addr

func (self *Listener) Addr() net.Addr

Addr reports the local UDP address the listener is bound to.

func (*Listener) Start

func (self *Listener) Start()

func (*Listener) Stop

func (self *Listener) Stop()

Jump to

Keyboard shortcuts

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