add heartbeat echo from server to client

This commit is contained in:
Hurricanezwf
2016-02-26 10:52:22 +08:00
Unverified
parent b2ca78fa04
commit a2f1897ab4
4 changed files with 83 additions and 13 deletions
+10
View File
@@ -11,3 +11,13 @@ const (
CtlConn = iota
WorkConn
)
// msg from client to server
const (
CSHeartBeatReq = 1
)
// msg from server to client
const (
SCHeartBeatRes = 100
)