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 DefaultInterfaceFinder
- func (f *DefaultInterfaceFinder) InterfaceByAddr(addr netip.Addr) (*Interface, error)
- func (f *DefaultInterfaceFinder) InterfaceIndexByName(name string) (int, error)
- func (f *DefaultInterfaceFinder) InterfaceNameByIndex(index int) (string, error)
- func (f *DefaultInterfaceFinder) Update() error
- func (f *DefaultInterfaceFinder) UpdateInterfaces(interfaces []Interface)
- 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 Interface
- type InterfaceFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToInterface0 ¶
Types ¶
type DefaultInterfaceFinder ¶
type DefaultInterfaceFinder struct {
// contains filtered or unexported fields
}
func NewDefaultInterfaceFinder ¶ added in v0.4.0
func NewDefaultInterfaceFinder() *DefaultInterfaceFinder
func (*DefaultInterfaceFinder) InterfaceByAddr ¶ added in v0.4.0
func (f *DefaultInterfaceFinder) InterfaceByAddr(addr netip.Addr) (*Interface, error)
func (*DefaultInterfaceFinder) InterfaceIndexByName ¶ added in v0.4.0
func (f *DefaultInterfaceFinder) InterfaceIndexByName(name string) (int, error)
func (*DefaultInterfaceFinder) InterfaceNameByIndex ¶ added in v0.4.0
func (f *DefaultInterfaceFinder) InterfaceNameByIndex(index int) (string, error)
func (*DefaultInterfaceFinder) Update ¶ added in v0.4.0
func (f *DefaultInterfaceFinder) Update() error
func (*DefaultInterfaceFinder) UpdateInterfaces ¶ added in v0.4.0
func (f *DefaultInterfaceFinder) UpdateInterfaces(interfaces []Interface)
type Func ¶
func BindToInterface ¶
func BindToInterface(finder InterfaceFinder, interfaceName string, interfaceIndex int) Func
func BindToInterfaceFunc ¶
func DisableUDPFragment ¶
func DisableUDPFragment() Func
func ProtectPath ¶
func RoutingMark ¶
Click to show internal directories.
Click to hide internal directories.