nat

package
v0.3.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxSegmentSize = (1 << 16) - 1

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Src       net.Addr
	Dst       proxy.Address
	WriteBack func(b []byte, addr net.Addr) (int, error)
	Payload   []byte
}

type SourceTable

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

type Table

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

func NewTable

func NewTable(dialer proxy.Proxy) *Table

func (*Table) Close

func (u *Table) Close() error

func (*Table) Write

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

Jump to

Keyboard shortcuts

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