View Single Post
Old 01-07-2008, 09:38 PM   #1 (permalink)
--w00t--
Account Terminated
 
Join Date: Dec 2007
Posts: 28
Default handling gzip packets

How are UO gzip packets handled? I know I need the zlib for whatever platform I'm using, but how do I know how big the packet is as its coming through? As in tcp packets are just streams, so you need to get up to a specific size, then handle the data to do whatever you need, in the case of a gzipped packet, it needs to be decompressed first. When I look at the char list for example, its a variable lenght packet and the size is specified, but I only know the size once I uncompress it, but I need to know the size so I can uncompress it, as I need to ensure I capture enough but not too much.
--w00t-- is offline   Reply With Quote