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

Function DialWithDialer

tls.go:116–118  ·  view source on GitHub ↗

DialWithDialer connects to the given network address using dialer.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Any timeout or deadline given in the dialer apply to connection and TLS handshake as a whole. DialWithDialer interprets a nil configuration as equivalen

(dialer *net.Dialer, network, addr string, config *Config)

Source from the content-addressed store, hash-verified

114// DialWithDialer uses context.Background internally; to specify the context,
115// use Dialer.DialContext with NetDialer set to the desired dialer.
116func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
117 return dial(context.Background(), dialer, network, addr, config)
118}
119
120func dial(ctx context.Context, netDialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
121 if netDialer.Timeout != 0 {

Callers 1

DialFunction · 0.85

Calls 1

dialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…