natmap

package
v0.0.0-...-b4cf14d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatMap

type NatMap struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewNatMap

func NewNatMap() *NatMap

func (*NatMap) Add

func (nm *NatMap) Add(addr netip.AddrPort, conn net.Conn)

func (*NatMap) Del

func (nm *NatMap) Del(addr netip.AddrPort) net.Conn

func (*NatMap) Get

func (nm *NatMap) Get(addr netip.AddrPort) (net.Conn, bool)

Jump to

Keyboard shortcuts

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