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

Struct Dialer

tls.go:176–187  ·  view source on GitHub ↗

Dialer dials TLS connections given a configuration and a Dialer for the underlying connection.

Source from the content-addressed store, hash-verified

174// Dialer dials TLS connections given a configuration and a Dialer for the
175// underlying connection.
176type Dialer struct {
177 // NetDialer is the optional dialer to use for the TLS connections'
178 // underlying TCP connections.
179 // A nil NetDialer is equivalent to the net.Dialer zero value.
180 NetDialer *net.Dialer
181
182 // Config is the TLS configuration to use for new connections.
183 // A nil configuration is equivalent to the zero
184 // configuration; see the documentation of Config for the
185 // defaults.
186 Config *Config
187}
188
189// Dial connects to the given network address and initiates a TLS
190// handshake, returning the resulting TLS connection.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected