[Winpcap-users] How can i get the new-est packet from buffer? HELPPLEASE~!

David Chang dchang at fsautomation.com
Mon May 25 21:52:19 PDT 2009


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
  ----- Original Message ----- 
  From: rst 
  To: winpcap-users at winpcap.org 
  Sent: Monday, May 25, 2009 9:34 PM
  Subject: [Winpcap-users] How can i get the new-est packet from buffer? HELPPLEASE~!


  i have some data thansmite from another machine,
  it is very fast (about 200000 packets/per second),
  when i called function "pcap_next_ex",
  it always get the old data, i guess that's because the packets is fill into a buffer,
  if i need to get the new-est packet , 
  how should i do?

  Thanks.



------------------------------------------------------------------------------


  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090525/d84c6786/attachment.htm 


More information about the Winpcap-users mailing list