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

Struct Dialer

tls.go:650–661  ·  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

648// Dialer dials TLS connections given a configuration and a Dialer for the
649// underlying connection.
650type Dialer struct {
651 // NetDialer is the optional dialer to use for the TLS connections'
652 // underlying TCP connections.
653 // A nil NetDialer is equivalent to the net.Dialer zero value.
654 NetDialer *net.Dialer
655
656 // Config is the TLS configuration to use for new connections.
657 // A nil configuration is equivalent to the zero
658 // configuration; see the documentation of Config for the
659 // defaults.
660 Config *Config
661}
662
663// Dial connects to the given network address and initiates a TLS
664// handshake, returning the resulting TLS connection.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected