MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewServerConn

Function NewServerConn

naconn/conn.go:54–58  ·  view source on GitHub ↗

NewServerConn takes a raw connection and returns a new server side NAConn.

(conn net.Conn)

Source from the content-addressed store, hash-verified

52
53// NewServerConn takes a raw connection and returns a new server side NAConn.
54func NewServerConn(conn net.Conn) *NAConn {
55 return &NAConn{
56 CryptoConn: etls.NewConn(conn, nil), // at server side, cipher will be set during handshake
57 }
58}
59
60//func NewClientConn(conn net.Conn) *NAConn {
61// return &NAConn{

Callers 1

AcceptFunction · 0.85

Calls 1

NewConnFunction · 0.92

Tested by

no test coverage detected