dialer

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2016 License: MPL-2.0 Imports: 9 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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