Esempio n. 1
0
 private static bool FindPacket(int packetID, int protocolID, ByteBuffer buffer, Connection connection)
 {
     if (!AgentPacketProcessors.FindPacketAction((PacketCategory)packetID, protocolID, out var action))
     {
         return(false);
     }
     SunCommon.PacketParser.LogPacketRecieved(packetID, protocolID, buffer, action.Method.Name);
     action(buffer, connection);
     return(true);
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     DBConnection.IniitializeConnection("127.0.0.1", 7001);
     NetworkConfig.InitializeNetwork();
     AgentPacketProcessors.Initialize();
     while (true)
     {
         ConsoleHandler.ConsoleTick();
     }
 }