Skip to content
Guest Big Announcement

Visual Studio Help

Featured Replies

So I have been working on this previously created project, and really couldn't get it to work correctly, as the projects wasn't finished. I had to create a tcp server for things to somewhat work and added some code to get the project to execute. The project is coded in C sharp and is for the app called Palringo(its suppose to be a engine that logs into the app and can imitate various things that the app does). This line of code is what is used to initiate the packet handler. Apparently, "(packet.Command)" contains the command "LOGON", but the other commands are "AUTH", "MESG", "AVATAR" etc. I literally cannot paste the whole code, but I just want to know why only a certain command was stored into "(packet.Command)". If more information is needed(probably) please tell me. 

 

 

if (_packetHandlers.ContainsKey(packet.Command))
           _packetHandlers[packet.Command].Process(tcp, packet);
           else
                Console.WriteLine("INVALID COMMAND!: " + packet.Command);
                //_packetHandlers[packet.Command].Process(tcp, packet);

6 hours ago, Ynotsend said:

So I have been working on this previously created project, and really couldn't get it to work correctly, as the projects wasn't finished. I had to create a tcp server for things to somewhat work and added some code to get the project to execute. The project is coded in C sharp and is for the app called Palringo(its suppose to be a engine that logs into the app and can imitate various things that the app does). This line of code is what is used to initiate the packet handler. Apparently, "(packet.Command)" contains the command "LOGON", but the other commands are "AUTH", "MESG", "AVATAR" etc. I literally cannot paste the whole code, but I just want to know why only a certain command was stored into "(packet.Command)". If more information is needed(probably) please tell me. 

 

 

if (_packetHandlers.ContainsKey(packet.Command))
           _packetHandlers[packet.Command].Process(tcp, packet);
           else
                Console.WriteLine("INVALID COMMAND!: " + packet.Command);
                //_packetHandlers[packet.Command].Process(tcp, packet);

Why wouldn't it contain a single command

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.