Ok, i've looked in a lot of places, and on google, and it seems that google is perforated with "packet sniffer" and that not what I want, in other words I cant find what I wanted.
I'm working on upgrading my server to the latest version of the client (public server api) and the packet protocol has changed... im not good with packets yet, so i would like help on how to set this up. the login packet is set up like this:
Packet id - 1 byte
version - int - 4 bytes
username - string - UTF-8 encoded string. First two bytes is a short describing the number of bytes in the string.
password - string - UTF-8 encoded string. First two bytes is a short describing the number of bytes in the string.
in the old version it was easy, because each packet was a set length, so i could read it easily.... with this new setup i cant figure out how to make it receive the packet, split it into its respective parts... easily
I made a little mod that will get me the username and "password" but it is buggy and doesnt get me the version... any help would be appreciated, a link to a simple introduction to receiving packets like this wouldn't be bad either.
Thanks