ptable

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	SrcIP, DstIP     net.IP
	SrcPort, DstPort int
	// contains filtered or unexported fields
}

func (*Entry) Conn

func (e *Entry) Conn() net.Conn

type Family

type Family int
const (
	TCP Family = iota
	UDP
)

type T

type T [nfamilies * nports]atomic.Value

func (*T) Del

func (t *T) Del(f Family, port int)

func (*T) Get

func (t *T) Get(f Family, port int) (e *Entry)

func (*T) Set

func (t *T) Set(f Family, port int, e *Entry, init func() (net.Conn, error))

Jump to

Keyboard shortcuts

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