Esempio n. 1
0
 private void SwitchParserRequest()
 {
     _packetParser.SetConnection(_connection);
     _packetParser.OnNewPacket += Parser_OnNewPacket;
     byte[] data = (_connection.parser as InitialPacketParser).currentData;
     _connection.parser.Dispose();
     _connection.parser = _packetParser;
     _connection.parser.handlePacketData(data);
 }
Esempio n. 2
0
 private void SwitchParserRequest()
 {
     PacketParser.SetConnection(Connection);
     PacketParser.OnNewPacket += ParserOnNewPacket;
     byte[] data = (Connection.Parser as InitialPacketParser).CurrentData;
     Connection.Parser.Dispose();
     Connection.Parser = PacketParser;
     Connection.Parser.HandlePacketData(data);
 }
Esempio n. 3
0
        private void SwitchParserRequest()
        {
            _packetParser.SetConnection(_connection);
            _packetParser.OnNewPacket += parser_onNewPacket;
            var data = (_connection.Parser as InitialPacketParser).CurrentData;

            _connection.Parser.Dispose();
            _connection.Parser = _packetParser;
            _connection.Parser.HandlePacketData(data);
        }
Esempio n. 4
0
 void SwitchParserRequest()
 {
     if (MessageHandler == null)
     {
         InitHandler();
     }
     packetParser.SetConnection(Connection);
     packetParser.onNewPacket += new GamePacketParser.HandlePacket(parser_onNewPacket);
     byte[] data = (Connection.parser as InitialPacketParser).currentData;
     Connection.parser.Dispose();
     Connection.parser = packetParser;
     Connection.parser.handlePacketData(data);
 }
Esempio n. 5
0
        private void SwitchParserRequest(byte[] data)
        {
            if (MessageHandler == null)
            {
                InitHandler();
            }

            packetParser.SetConnection();
            packetParser.onNewPacket += new GamePacketParser.HandlePacket(parser_onNewPacket);
            Connection.parser.Dispose();
            Connection.parser = packetParser;
            Connection.parser.handlePacketData(data);
        }
Esempio n. 6
0
        /// <summary>
        /// Switches the parser request.
        /// </summary>
        private void SwitchParserRequest()
        {
            if (_messageHandler == null)
            {
                InitHandler();
            }
            PacketParser.SetConnection(_connection);
            PacketParser.OnNewPacket += parser_onNewPacket;
            var currentData = (_connection.parser as InitialPacketParser).CurrentData;

            _connection.parser.Dispose();
            _connection.parser = PacketParser;
            _connection.parser.HandlePacketData(currentData);
        }