control

package
v0.0.0-...-d3bc976 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(conn syscall.RawConn, block func(fd uintptr) error) error

Types

type BindManager

type BindManager interface {
	IndexByName(name string) (int, error)
	Update() error
}

func NewBindManager

func NewBindManager() BindManager

type Func

type Func = func(network, address string, conn syscall.RawConn) error

func Append

func Append(oldFunc Func, newFunc Func) Func

func BindToInterface

func BindToInterface(manager BindManager, interfaceName string) Func

func BindToInterfaceFunc

func BindToInterfaceFunc(manager BindManager, interfaceNameFunc func() string) Func

func BindToInterfaceIndexFunc

func BindToInterfaceIndexFunc(interfaceIndexFunc func() int) Func

func ProtectPath

func ProtectPath(protectPath string) Func

func ReuseAddr

func ReuseAddr() Func

func RoutingMark

func RoutingMark(mark int) Func

Jump to

Keyboard shortcuts

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