udp

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListener

func NewListener(conn net.PacketConn, cfg *ListenConfig) net.Listener

Types

type IConn

type IConn interface {
	net.PacketConn
	io.Reader
	io.Writer
	// contains filtered or unexported methods
}

type ListenConfig

type ListenConfig struct {
	Addr           net.Addr
	Backlog        int
	ReadQueueSize  int
	ReadBufferSize int
	TTL            time.Duration
	KeepAlive      bool
	Logger         logger.ILogger
}

Jump to

Keyboard shortcuts

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