Beispiel #1
0
        /// <summary>
        /// 心跳包
        /// </summary>
        public static void Handle_GameHeart(ArrByteReader reader)
        {
            int utc = reader.ReadInt();

            Log("Handle_GameHeart=" + utc);
            if (utc == 0)
            {
                //User.GetInstance ().Logout ();
                //HintMgr.CreateDisConnect("请求超时,点击确认重新连接!");
            }
        }
Beispiel #2
0
        /// <summary>
        /// 心跳包
        /// </summary>
        public static void Handle_LoginHeart(ArrByteReader reader)
        {
            //int utc = reader.ReadInt();
            //Log("Handle_LoginHeart=" + utc);
            int    key   = reader.ReadByte();
            string value = reader.ReadUTF8String();

            Log("key=" + key + " value=" + value);
            //if (utc == 0)
            {
                //User.GetInstance ().Logout ();
                //HintMgr.CreateDisConnect("请求超时,点击确认重新连接!");
            }
        }
 public virtual void SetPacket(ArrByteReader reader)
 {
 }
Beispiel #4
0
        /// <summary>
        /// 99 服务器时间
        /// </summary>
        public static void Handle_ServerTime(ArrByteReader reader)
        {
            string time = reader.ReadUTF8String();

            Log("Handle_ServerTime" + time);
        }