conn

package
v0.0.0-...-69b9976 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UDPType = "udp4"
)

Variables

This section is empty.

Functions

func GetPreferredOutboundAddr

func GetPreferredOutboundAddr() (netip.Addr, error)

Types

type Conn

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

func NewConn

func NewConn(port uint16) (*Conn, error)

func (*Conn) Close

func (conn *Conn) Close() error

func (*Conn) LocalAddr

func (conn *Conn) LocalAddr() net.Addr

func (*Conn) ReadFromUDP

func (conn *Conn) ReadFromUDP(b []byte) (int, *net.UDPAddr, error)

func (*Conn) SetReadDeadline

func (conn *Conn) SetReadDeadline(t time.Time) error

func (*Conn) WriteToUDP

func (conn *Conn) WriteToUDP(b []byte, addr *net.UDPAddr) (int, error)

Jump to

Keyboard shortcuts

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