routing

package
v0.0.0-...-3697f30 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UdpRoutes

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

func NewUdpRoutes

func NewUdpRoutes() *UdpRoutes

func (*UdpRoutes) AddRoute

func (u *UdpRoutes) AddRoute(from *net.UDPAddr, id int64)

func (*UdpRoutes) Associate

func (u *UdpRoutes) Associate(localid, remoteid int64)

func (*UdpRoutes) FindAssociation

func (u *UdpRoutes) FindAssociation(id int64) (int64, bool)

func (*UdpRoutes) FindOrAddRouteByAddr

func (u *UdpRoutes) FindOrAddRouteByAddr(addr *net.UDPAddr) int64

func (*UdpRoutes) FindRouteByAddr

func (u *UdpRoutes) FindRouteByAddr(addr *net.UDPAddr) (int64, bool)

func (*UdpRoutes) FindRouteById

func (u *UdpRoutes) FindRouteById(id int64) *net.UDPAddr

func (*UdpRoutes) RemoveRouteById

func (u *UdpRoutes) RemoveRouteById(id int64)

Jump to

Keyboard shortcuts

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