nat

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdleTimeout = time.Minute * 3
View Source
var MaxSegmentSize = pool.MaxSegmentSize

Functions

func GenerateID added in v0.3.6

func GenerateID(src net.Addr) uint64

func NewStopTimer added in v0.3.7

func NewStopTimer(duration time.Duration, do func()) *stopTimer

Types

type Context added in v0.3.7

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

type SourceControl added in v0.3.7

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

func NewSourceChan added in v0.3.7

func NewSourceChan(dialer netapi.Proxy, onRemove func(*SourceControl)) *SourceControl

func (*SourceControl) Close added in v0.3.7

func (u *SourceControl) Close() error

func (*SourceControl) WritePacket added in v0.3.7

func (u *SourceControl) WritePacket(ctx context.Context, pkt *netapi.Packet) error

func (*SourceControl) WriteTo added in v0.3.7

func (t *SourceControl) WriteTo(b []byte, realDst net.Addr, originDst netapi.Address, conn net.PacketConn) error

type Table

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

func NewTable

func NewTable(dialer netapi.Proxy) *Table

func (*Table) Close

func (u *Table) Close() error

func (*Table) Write

func (u *Table) Write(ctx context.Context, pkt *netapi.Packet) error

Jump to

Keyboard shortcuts

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