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

Function Client

tls.go:47–55  ·  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

45// The config cannot be nil: users must set either ServerName or
46// InsecureSkipVerify in the config.
47func Client(conn net.Conn, config *Config) *Conn {
48 c := &Conn{
49 conn: conn,
50 config: config,
51 isClient: true,
52 }
53 c.handshakeFn = c.clientHandshake
54 return c
55}
56
57// A listener implements a network listener (net.Listener) for TLS connections.
58type listener struct {

Callers 1

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…