Documentation ¶
Index ¶
- func BindToInterface0(finder InterfaceFinder, conn syscall.RawConn, network string, address string, ...) error
- func Conn(conn syscall.Conn, block func(fd uintptr) error) error
- func Raw(rawConn syscall.RawConn, block func(fd uintptr) error) error
- type Func
- func Append(oldFunc Func, newFunc Func) Func
- func BindToInterface(finder InterfaceFinder, interfaceName string, interfaceIndex int) Func
- func BindToInterfaceFunc(finder InterfaceFinder, ...) Func
- func DisableUDPFragment() Func
- func ProtectPath(protectPath string) Func
- func ReuseAddr() Func
- func RoutingMark(mark int) Func
- func SetKeepAlivePeriod(idle time.Duration, interval time.Duration) Func
- type InterfaceFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToInterface0 ¶
Types ¶
type Func ¶
func BindToInterface ¶
func BindToInterface(finder InterfaceFinder, interfaceName string, interfaceIndex int) Func
func BindToInterfaceFunc ¶
func DisableUDPFragment ¶
func DisableUDPFragment() Func
func ProtectPath ¶
func RoutingMark ¶
type InterfaceFinder ¶
type InterfaceFinder interface { InterfaceIndexByName(name string) (int, error) InterfaceNameByIndex(index int) (string, error) }
func DefaultInterfaceFinder ¶
func DefaultInterfaceFinder() InterfaceFinder
Click to show internal directories.
Click to hide internal directories.