MCPcopy Index your code
hub / github.com/syncthing/syncthing / ping

Method ping

lib/protocol/protocol.go:403–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401}
402
403func (c *rawConnection) ping() bool {
404 return c.send(context.Background(), &bep.Ping{}, nil)
405}
406
407func (c *rawConnection) readerLoop() {
408 fourByteBuf := make([]byte, 4)

Callers 3

pingSenderMethod · 0.95
TestPingFunction · 0.80
TestCloseFunction · 0.80

Calls 1

sendMethod · 0.95

Tested by 2

TestPingFunction · 0.64
TestCloseFunction · 0.64