Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
403
func
(c *rawConnection) ping() bool {
404
return
c.send(context.Background(), &bep.Ping{}, nil)
405
}
406
407
func
(c *rawConnection) readerLoop() {
408
fourByteBuf := make([]byte, 4)
Callers
3
pingSender
Method · 0.95
TestPing
Function · 0.80
TestClose
Function · 0.80
Calls
1
send
Method · 0.95
Tested by
2
TestPing
Function · 0.64
TestClose
Function · 0.64