Ejemplo n.º 1
0
        public static void OnAsyncConnected(object obj)
        {
            Debug.Assert(null != obj);
            Debug.Assert(obj is CenterServer);

            CenterServer center_server = obj as CenterServer;

            center_server.SendAuthPacket();
            center_server.StartSendAsync();
        }
Ejemplo n.º 2
0
        public static int PacketProcessAuth(object obj, Packet pkt)
        {
            Debug.Assert(null != obj);
            Debug.Assert(obj is CenterServer);
            Debug.Assert(Protocol.GS_CNT_AUTH == pkt.GetPacketID());

            CenterServer center_server = obj as CenterServer;

            uint game_server_id = pkt.GetUint();

            Debug.Assert(ConfigManager.Instance.GAME_SERVER_ID == game_server_id);

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

            return((int)PacketProcessManager.PACKET_PROC_ERROR.SUCCESS);
        }
Ejemplo n.º 3
0
 public CenterServerManager()
 {
     m_CenterServer = new CenterServer();
 }