MCPcopy
hub / github.com/aceld/zinx / HeatBeatDefaultHandle

Function HeatBeatDefaultHandle

znet/heartbeat.go:40–43  ·  view source on GitHub ↗
(req ziface.IRequest)

Source from the content-addressed store, hash-verified

38}
39
40func HeatBeatDefaultHandle(req ziface.IRequest) {
41 zlog.Ins().DebugF("Recv Heartbeat from %s, MsgID = %+v, Data = %s",
42 req.GetConnection().RemoteAddr(), req.GetMsgID(), string(req.GetData()))
43}
44
45func makeDefaultMsg(conn ziface.IConnection) []byte {
46 msg := fmt.Sprintf("heartbeat [%s->%s]", conn.LocalAddr(), conn.RemoteAddr())

Callers

nothing calls this directly

Calls 6

InsFunction · 0.92
DebugFMethod · 0.65
RemoteAddrMethod · 0.65
GetConnectionMethod · 0.65
GetMsgIDMethod · 0.65
GetDataMethod · 0.65

Tested by

no test coverage detected