dialer

package
v0.14.28 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

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

Dial tries dialing via proxy if a proxy is configured, and falls back to a direct connection if no proxy is defined, or connecting via proxy fails.

func DialTimeout added in v0.12.5

func DialTimeout(network, addr string, timeout time.Duration) (net.Conn, error)

DialTimeout tries dialing via proxy with a timeout if a proxy is configured, and falls back to a direct connection if no proxy is defined, or connecting via proxy fails. The timeout can potentially be applied twice, once trying to connect via the proxy connection, and second time trying to connect directly.

func SetTCPOptions added in v0.12.17

func SetTCPOptions(conn net.Conn) error

SetTCPOptions sets our default TCP options on a TCP connection, possibly digging through dialerConn to extract the *net.TCPConn

func SetTrafficClass added in v0.14.17

func SetTrafficClass(conn net.Conn, class int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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