dialer

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2016 License: MPL-2.0 Imports: 9 Imported by: 8

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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