MCPcopy Create free account
hub / github.com/esrrhs/spp / processPing

Function processPing

proxy/common.go:552–555  ·  view source on GitHub ↗
(f *ProxyFrame, sendch *common.Channel, proxyconn *ProxyConn, pongflag *int32, pongtime *int64)

Source from the content-addressed store, hash-verified

550}
551
552func processPing(f *ProxyFrame, sendch *common.Channel, proxyconn *ProxyConn, pongflag *int32, pongtime *int64) {
553 atomic.AddInt32(pongflag, 1)
554 *pongtime = f.PingFrame.Time
555}
556
557func processPong(f *ProxyFrame, sendch *common.Channel, proxyconn *ProxyConn, showping bool) {
558 elapse := time.Duration(time.Now().UnixNano() - f.PongFrame.Time)

Callers 2

processMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected