dialer

package
v0.0.0-...-35843ba Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 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, error)

func ListenPacket

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

Types

type DialHookFunc

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

func DialerWithInterface

func DialerWithInterface(name string) DialHookFunc

type DialerHookFunc

type DialerHookFunc = func(dialer *net.Dialer) error

type ListenPacketHookFunc

type ListenPacketHookFunc = func(lc *net.ListenConfig, address string) (string, error)

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