@
cyberinferno: if i understand you, what you want to know is: how the data is transfer from client to server and viceversa. If that is what you want to know, then here is a brief explanation.
Lets start by saying that almost all packets from client and server are encrypted with and algorithm made by hanbit, That algorithm use a 1024 char array to encrypt/decrypt pakets.
Do you remember that thread where someone said "change the [jo]" to bind the client to the server? if so, i will say that that "jo" is just 2 bytes of the 1024 char array used to encrypt/decrypt the packet.
Because you are c# programmer as I am, I will show u part of my code that is the c++ translation:
that is part of the code used by the client & server to encrypt packets, where:
ClientKey is the 1024 char array, as you may see client and server will take different start point of that array based on the stored oldchecksum and so on.
the first 12 bytes of the packet, will not be encrypted, because those bytes stores the message code, the checksum, and the time stamp of the message.
If for example the client fails to receive a response from the server, client will try to send the packet again, but, this 2do time the packet will not be the same, because the oldchecksum will not longer be 0 so the other stored vars.
to really understand how it works you have to do some like I did, make a hook on the client & server "send/recv" functions from WS2_32 dll, and then have fun with the reverse engineering, will be easy for you since you have the c++ source.
BTW the CPSock class didnt change at all from the sources you have til now days so that class is not outdated as you said in your other thread. The classes outdated are HTNetWorkHandle & TNNetworkManager coz they added more functions on them.
P.D I didnt show you the c# version of the ReadClientMessage function because it is allmost correctly explained in your other thread (at least the logic of it by
Nothilvien he/she have some errors but just because he/she is just explaining the code you posted w/o having for that time the whole class on his/her hands)