udp

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	net.Conn
	ReadFromUDP(b []byte) (n int, addr *net.UDPAddr, err error)
}

type Connector

type Connector interface {
	ResolveUDPAddr(network string, address string) (*net.UDPAddr, error)
	DialUDP(network string, laddr *net.UDPAddr, raddr *net.UDPAddr) (Connection, error)
	ListenUDP(network string, laddr *net.UDPAddr) (Connection, error)
}

func NewConnector

func NewConnector() Connector

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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