dialer

package
v0.0.0-...-9370983 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindToInterface

func BindToInterface(name string) error

BindToInterface binds dialer to specific interface.

func Dial

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

func DialContext

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

func ListenPacket

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

func SetMark

func SetMark(i int)

SetMark sets the mark for each packet sent through this dialer(socket).

Types

This section is empty.

Jump to

Keyboard shortcuts

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