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

Method ConnectionState

conn.go:1685–1689  ·  view source on GitHub ↗

ConnectionState returns basic TLS details about the connection.

()

Source from the content-addressed store, hash-verified

1683
1684// ConnectionState returns basic TLS details about the connection.
1685func (c *Conn) ConnectionState() ConnectionState {
1686 c.handshakeMutex.Lock()
1687 defer c.handshakeMutex.Unlock()
1688 return c.connectionStateLocked()
1689}
1690
1691func (c *Conn) connectionStateLocked() ConnectionState {
1692 var state ConnectionState

Callers

nothing calls this directly

Calls 1

connectionStateLockedMethod · 0.95

Tested by

no test coverage detected