dialer

package
v0.0.0-...-0f07e46 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 Dial

func Dial(network, address string) (net.Conn, error)

func DialContext

func DialContext(ctx context.Context, network, address string) (net.Conn, error)

func Dialer

func Dialer() *net.Dialer

func ListenConfig

func ListenConfig() *net.ListenConfig

func ListenPacket

func ListenPacket(network, address string) (net.PacketConn, error)

Types

type DialHookFunc

type DialHookFunc = func(dialer *net.Dialer, network string, ip net.IP)

func DialerWithInterface

func DialerWithInterface(name string) DialHookFunc

type DialerHookFunc

type DialerHookFunc = func(dialer *net.Dialer)

type ListenConfigHookFunc

type ListenConfigHookFunc = func(*net.ListenConfig)

type ListenPacketHookFunc

type ListenPacketHookFunc = func() net.IP

func ListenPacketWithInterface

func ListenPacketWithInterface(name string) ListenPacketHookFunc

Jump to

Keyboard shortcuts

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