(req ziface.IRequest)
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 45 | func makeDefaultMsg(conn ziface.IConnection) []byte { |
| 46 | msg := fmt.Sprintf("heartbeat [%s->%s]", conn.LocalAddr(), conn.RemoteAddr()) |
nothing calls this directly
no test coverage detected