Esempio n. 1
0
        private void OnResponse_Login(MemoryStream stream, int uid)
        {
            MSG_C2G_Login msg = ProtoBuf.Serializer.Deserialize <MSG_C2G_Login>(stream);

            Log.Debug("recv login usr {0} pwd {1}", msg.Username, msg.Password);

            //Client loginedClient = _manager.FindClient(msg.Username);
            //检查是不是重复登陆
            //if (otherClient!= null)
            {
                //1 重复登陆逻辑
                //frTODO:
                //告诉客户端是重复登陆
                //顶掉loginedClient 做相关清理工作
            }
            //else
            {
                //2 正常登陆逻辑
                //检查版本号
                //检查登陆token
                //检查账号密码
                _authMgr.Username = msg.Username;
            }
        }
Esempio n. 2
0
        public void OnResponse_MSG_C2G_Login(MemoryStream stream, int uid = 0)
        {
            MSG_C2G_Login MSG_C2G_Login = ProtoBuf.Serializer.Deserialize <MSG_C2G_Login>(stream);

            Parser.Parse(MSG_C2G_Login);
        }
Esempio n. 3
0
 public object Init_MSG_C2G_Login()
 {
     msg_MSG_C2G_Login = new MSG_C2G_Login();
     return(msg_MSG_C2G_Login);
 }