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

Method Handshake

conn.go:1564–1566  ·  view source on GitHub ↗

Handshake runs the client or server handshake protocol if it has not yet been run. Most uses of this package need not call Handshake explicitly: the first [Conn.Read] or [Conn.Write] will call it automatically. For control over canceling or setting a timeout on a handshake, use [Conn.HandshakeCont

()

Source from the content-addressed store, hash-verified

1562// bits. This limit can be overridden by setting tlsmaxrsasize in the GODEBUG
1563// environment variable (e.g. GODEBUG=tlsmaxrsasize=4096).
1564func (c *Conn) Handshake() error {
1565 return c.HandshakeContext(context.Background())
1566}
1567
1568// HandshakeContext runs the client or server handshake
1569// protocol if it has not yet been run.

Callers 3

WriteMethod · 0.95
ReadMethod · 0.95

Calls 1

HandshakeContextMethod · 0.95

Tested by

no test coverage detected