MCPcopy Create free account
hub / github.com/XTLS/Go / Dial

Function Dial

tls.go:170–172  ·  view source on GitHub ↗

Dial connects to the given network address using net.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Dial interprets a nil configuration as equivalent to the zero configuration; see the documentation of Config for the defaults.

(network, addr string, config *Config)

Source from the content-addressed store, hash-verified

168// the zero configuration; see the documentation of Config
169// for the defaults.
170func Dial(network, addr string, config *Config) (*Conn, error) {
171 return DialWithDialer(new(net.Dialer), network, addr, config)
172}
173
174// Dialer dials TLS connections given a configuration and a Dialer for the
175// underlying connection.

Callers

nothing calls this directly

Calls 1

DialWithDialerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…