[Winpcap-users] How can i get the new-est packet from buffer?HELPPLEASE~!
rst
slash at realscene.com.tw
Mon May 25 22:17:55 PDT 2009
Sorry, does it has another way to do this?
my application do lots works,
it can't get pakcets so fast.
i hope i can only get the new-est packet,
and others old packets not need.
Thanks for your help.
----- Original Message -----
From: David Chang
To: winpcap-users at winpcap.org
Sent: Tuesday, May 26, 2009 12:52 PM
Subject: Re: [Winpcap-users] How can i get the new-est packet from buffer?HELPPLEASE~!
Just keep calling pcap_next_ex. It's a circular queue. That is, new data is constantly being put in the queue. Your application has to get the data out of the queue fast enough so that it doesn't drop packets. If you don't take the data out of the queue fast enough (by calling pcap_next_ex), then it overwrites the oldest data.
DC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090526/4ef3914a/attachment.htm
More information about the Winpcap-users
mailing list