net

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeadline net.Error = &deadlineError{}

Functions

This section is empty.

Types

type Deadline

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

func (*Deadline) Close

func (d *Deadline) Close() error

func (*Deadline) Deadline

func (d *Deadline) Deadline() <-chan struct{}

func (*Deadline) SetDeadline

func (d *Deadline) SetDeadline(t time.Time)

type UDPListener added in v0.10.0

type UDPListener struct {
	PacketConn net.PacketConn
	// contains filtered or unexported fields
}

UDPListener wrap net.PacketConn as a udp listener

func (*UDPListener) Accept added in v0.10.0

func (l *UDPListener) Accept() (net.Conn, error)

Accept a connection-oriented udp connection

func (*UDPListener) AcceptContext added in v0.10.0

func (l *UDPListener) AcceptContext(ctx context.Context) (net.Conn, error)

AcceptContext accept a connection-oriented udp connection with a context

func (*UDPListener) Addr added in v0.10.0

func (l *UDPListener) Addr() net.Addr

Addr get listener addr

func (*UDPListener) Close added in v0.10.0

func (l *UDPListener) Close() error

Close udp listener

Jump to

Keyboard shortcuts

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