dialer

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: GPL-3.0 Imports: 6 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOptions []Option
)

Functions

func DialContext

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

func ListenPacket

func ListenPacket(ctx context.Context, network, address string, options ...Option) (net.PacketConn, error)

Types

type Option added in v1.7.0

type Option func(opt *config)

func WithAddrReuse added in v1.7.0

func WithAddrReuse(reuse bool) Option

func WithInterface added in v1.7.0

func WithInterface(name string) Option

func WithSkipDefault added in v1.7.0

func WithSkipDefault(skip bool) Option

Jump to

Keyboard shortcuts

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