MCPcopy
hub / github.com/XTLS/REALITY / Dial

Function Dial

tls.go:644–646  ·  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

642// the zero configuration; see the documentation of Config
643// for the defaults.
644func Dial(network, addr string, config *Config) (*Conn, error) {
645 return DialWithDialer(new(net.Dialer), network, addr, config)
646}
647
648// Dialer dials TLS connections given a configuration and a Dialer for the
649// 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…