Documentation ¶
Index ¶
- Variables
- func Dial(network, address string) (net.Conn, error)
- func DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func Dialer() (*net.Dialer, error)
- func ListenPacket(network, address string) (net.PacketConn, error)
- type DialHookFunc
- type DialerHookFunc
- type ListenPacketHookFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DialerHook DialerHookFunc DialHook DialHookFunc ListenPacketHook ListenPacketHookFunc )
View Source
var ( ErrAddrNotFound = errors.New("addr not found") ErrNetworkNotSupport = errors.New("network not support") )
Functions ¶
func ListenPacket ¶
func ListenPacket(network, address string) (net.PacketConn, error)
Types ¶
type DialHookFunc ¶
func DialerWithInterface ¶
func DialerWithInterface(name string) DialHookFunc
type DialerHookFunc ¶
type ListenPacketHookFunc ¶
type ListenPacketHookFunc = func(lc *net.ListenConfig, address string) (string, error)
func ListenPacketWithInterface ¶
func ListenPacketWithInterface(name string) ListenPacketHookFunc
Click to show internal directories.
Click to hide internal directories.