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
- func ListenConfig() *net.ListenConfig
- func ListenPacket(network, address string) (net.PacketConn, error)
- type DialHookFunc
- type DialerHookFunc
- type ListenConfigHookFunc
- type ListenPacketHookFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DialerHook DialerHookFunc DialHook DialHookFunc ListenConfigHook ListenConfigHookFunc ListenPacketHook ListenPacketHookFunc )
View Source
var ( ErrAddrNotFound = errors.New("addr not found") ErrNetworkNotSupport = errors.New("network not support") )
Functions ¶
func ListenConfig ¶
func ListenConfig() *net.ListenConfig
func ListenPacket ¶
func ListenPacket(network, address string) (net.PacketConn, error)
Types ¶
type DialHookFunc ¶
func DialerWithInterface ¶
func DialerWithInterface(name string) DialHookFunc
type DialerHookFunc ¶
type ListenConfigHookFunc ¶
type ListenConfigHookFunc = func(*net.ListenConfig)
type ListenPacketHookFunc ¶
func ListenPacketWithInterface ¶
func ListenPacketWithInterface(name string) ListenPacketHookFunc
Click to show internal directories.
Click to hide internal directories.