public override void Handle(object sender, IMessage packet) { base.Handle(sender, packet); CGLogout data = packet as CGLogout; //处理完数据和逻辑后,发送消息通知客户端 throw new System.NotImplementedException(GetType().ToString()); }
public void Logout(CGLogout packet) { int authkey = GameServer.GenerateAuthKey(); GLIncomingConnection lsic = new GLIncomingConnection(this.UserID, authkey); lsic.Write(ref GameServer.LoginServer.netstream); GCReconnectLogin answer = new GCReconnectLogin(GameServer.IPAddressLogin.ToString(), (uint)GameServer.PortLogin, authkey); answer.Write(ref netstream); }