Author | Message | Time |
---|---|---|
Fr3DBr | Im writting a packet stream reader for all the D2GS Incomming Data "S->C", so i need to know exactly when a packet is compressed or not, there should be a easy way, or at least a not too hard way for detecting that considering the client does that lol... Could someone enlight me ? Thanks. | September 2, 2006, 11:10 PM |
l2k-Shadow | Packets are always compressed. | September 2, 2006, 11:13 PM |
Fr3DBr | Oh so lets see... any compressed packet has its lenght on its first byte ? | September 2, 2006, 11:16 PM |
l2k-Shadow | Yep. | September 2, 2006, 11:50 PM |
Fr3DBr | so the maximum lenght of a compressed packet is 255 ? | September 2, 2006, 11:51 PM |
l2k-Shadow | No, in case that happens the length is 2 bytes rather than 1. | September 3, 2006, 2:01 AM |