MCPcopy
hub / github.com/syncthing/syncthing / getRawConnection

Function getRawConnection

lib/protocol/protocol_test.go:675–684  ·  view source on GitHub ↗
(c Connection)

Source from the content-addressed store, hash-verified

673}
674
675func getRawConnection(c Connection) *rawConnection {
676 var raw *rawConnection
677 switch i := c.(type) {
678 case wireFormatConnection:
679 raw = i.Connection.(encryptedConnection).conn
680 case encryptedConnection:
681 raw = i.conn
682 }
683 return raw
684}

Callers 12

TestPingFunction · 0.85
TestCloseFunction · 0.85
TestCloseOnBlockingSendFunction · 0.85
TestCloseRaceFunction · 0.85
TestClusterConfigFirstFunction · 0.85
TestCloseTimeoutFunction · 0.85
TestRequestMaxSizeFunction · 0.85
TestRequestZeroSizeFunction · 0.85
closeAndWaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected