Exemplo n.º 1
0
        public static void OnAsynConnected(object obj)
        {
            Debug.Assert(null != obj);
            Debug.Assert(obj is AccountServer);

            AccountServer account_server = obj as AccountServer;

            account_server.SendAuthPacket();
            account_server.StartSendAsync();
        }
Exemplo n.º 2
0
        public static int PacketProcessAuth(object obj, Packet pkt)
        {
            Debug.Assert(null != obj);
            Debug.Assert(obj is AccountServer);
            Debug.Assert(Protocol.GW_ACT_AUTH == pkt.GetPacketID());

            AccountServer account_server = obj as AccountServer;

            uint gateway_server_id = pkt.GetUint();

            Debug.Assert(ConfigManager.Instance.GATEWAY_SERVER_ID == gateway_server_id);

            LogManager.Info("Receive auth packet: Gateway server ID = " +
                            gateway_server_id.ToString());

            return((int)PacketProcessManager.PACKET_PROC_ERROR.SUCCESS);
        }
 public AccountServerManager()
 {
     m_AccountServer = new AccountServer();
 }