Title: Message
I'm new to this list, so bear with me if this has been hashed out before.  Though I looked through the archives and couldn't find anything easily that was related...
 
I'm trying to find out if there is something obvious I'm overlooking in trying to figure some logic out for determining if the results of querying the WON master server for the server list have returned "as they should".  Basically since it's all UDP, we have to do everything in our app to determine if the packets are happy packets. :)
 
I'm specifically using the "e" query/batch server list query.  I've setup some basic checks like make sure length is at least 16bytes(header info + at least 1 ip/port combo), length must be even, not including the length of the header info, the rest of the ip/port data length must be evenly divisible by 6, and also that the header info is what it should be.  But I'm noticing instances like I get sent a runt packet of 22 bytes.  This packet meets all the above criteria, but it's the very first packet or maybe a few down in the sequence.
 
So, am I overlooking some obvious logic here?  Is there some logic in the server protocol or UDP realm that I'm overlooking?  Or do I just start guessing at what I think the query should result in and make a lot of assumptions?
 
Thanks in advance!!
 
EdGruberman

Reply via email to