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

Method ConnectionState

conn.go:1758–1762  ·  view source on GitHub ↗

ConnectionState returns basic TLS details about the connection.

()

Source from the content-addressed store, hash-verified

1756
1757// ConnectionState returns basic TLS details about the connection.
1758func (c *Conn) ConnectionState() ConnectionState {
1759 c.handshakeMutex.Lock()
1760 defer c.handshakeMutex.Unlock()
1761 return c.connectionStateLocked()
1762}
1763
1764func (c *Conn) connectionStateLocked() ConnectionState {
1765 var state ConnectionState

Callers

nothing calls this directly

Calls 1

connectionStateLockedMethod · 0.95

Tested by

no test coverage detected