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

Function NewConn

crypto/etls/conn.go:51–56  ·  view source on GitHub ↗

NewConn returns a new CryptoConn.

(c net.Conn, cipher *Cipher)

Source from the content-addressed store, hash-verified

49
50// NewConn returns a new CryptoConn.
51func NewConn(c net.Conn, cipher *Cipher) *CryptoConn {
52 return &CryptoConn{
53 Conn: c,
54 Cipher: cipher,
55 }
56}
57
58// Dial connects to a address with a Cipher
59// address should be in the form of host:port.

Callers 8

newFakeCallerFunction · 0.92
twopc_test.goFile · 0.92
TestAcceptFuncFunction · 0.92
NewServerConnFunction · 0.92
DialExFunction · 0.92
conn_test.goFile · 0.85
TestCryptoConn_RWFunction · 0.85
DialFunction · 0.85

Calls

no outgoing calls

Tested by 3

newFakeCallerFunction · 0.74
TestAcceptFuncFunction · 0.74
TestCryptoConn_RWFunction · 0.68