dialer

package
v0.12.17 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2016 License: MPL-2.0 Imports: 8 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.TCPConn) error

SetTCPOptions sets syncthings default TCP options on a TCP connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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