Exemple #1
0
 //心跳
 public void MsgHeartBeat(Conn conn, ProtocolBase protocolBase)
 {
     conn.lastTickTime = Sys.GetTimeStamp();
     Console.WriteLine("[更新心跳时间]" + conn.GetAddr());
 }
Exemple #2
0
 public Player(string id, Conn conn)
 {
     this.id   = id;
     this.conn = conn;
     tempData  = new PlayerTempData();
 }
 // Protocol: HeartBeat
 // Rec Args: None
 // Return: None
 public void MsgHeartBeat(Conn conn, ProtocolBase protoBase)
 {
     conn.lastTickTime = Sys.GetTimeStamp();
     Console.WriteLine("[HandleConnMsg.MsgHeartBeat] Update HeartBeat Time: " + conn.GetAddress() + " : " + conn.lastTickTime.ToString());
 }