• Welcome to Valhalla Legends Archive.
 

More Than One Of the Same Packets

Started by Slippin, June 05, 2006, 09:18 PM

Previous topic - Next topic

Slippin

Short and Simple.
I have an index'd Winsock, Eveything works fine, Logs on bnet, bla bla bla.  But for some reason, I sometimes Get The same packet twice... Any reason for this?

FrostWraith

Is this verified if you don't attempt to parse the packets, just display?

Slippin

Well I do Both, For example, I get the packet that tells you your "True" Username the one that tells you #2 bla bla, I get that packet 3 times or more each Connection.

Hdx

Post a log. Use Etherial/WPE
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Ringo

#4
Remove the packet from your buffer into a string.
Cut the packet out from the buffer
Parse the packet you stored in the string.
That way, when the program is still parseing the data, a fresh DataArrival event wont trigger the same packet to be pushed into the parser, because it was cut out before you started to parse the current, so it will just trigger the next packet to be parsed

l2k-Shadow

Seems like you are stacking packets from all winsocks into 1 buffer, use a seperate buffer for each connection.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.