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

Function Client

tls.go:491–499  ·  view source on GitHub ↗

Client returns a new TLS client side connection using conn as the underlying transport. The config cannot be nil: users must set either ServerName or InsecureSkipVerify in the config.

(conn net.Conn, config *Config)

Source from the content-addressed store, hash-verified

489// The config cannot be nil: users must set either ServerName or
490// InsecureSkipVerify in the config.
491func Client(conn net.Conn, config *Config) *Conn {
492 c := &Conn{
493 conn: conn,
494 config: config,
495 isClient: true,
496 }
497 c.handshakeFn = c.clientHandshake
498 return c
499}
500
501// A listener implements a network listener (net.Listener) for TLS connections.
502type listener struct {

Callers 2

QUICClientFunction · 0.85
dialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…