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

Method NetConn

conn.go:183–185  ·  view source on GitHub ↗

NetConn returns the underlying connection that is wrapped by c. Note that writing to or reading from this connection directly will corrupt the TLS session.

()

Source from the content-addressed store, hash-verified

181// Note that writing to or reading from this connection directly will corrupt the
182// TLS session.
183func (c *Conn) NetConn() net.Conn {
184 return c.conn
185}
186
187// A halfConn represents one direction of the record layer
188// connection, either sending or receiving.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected