[Winpcap-users] How to exit pcap_loop?

Gianluca Varenni gianluca.varenni at cacetech.com
Fri Apr 27 21:31:15 GMT 2007


How to exit pcap_loop?Goran,

use pcap_next_ex() instead of pcap_loop() to receive the packets. Please follow the sample Examples-pcap\pktdump_ex in the WinPcap developer's pack.

Have a nice day
GV
  ----- Original Message ----- 
  From: Goran Štrok 
  To: winpcap-users at winpcap.org 
  Sent: Thursday, April 26, 2007 1:39 AM
  Subject: [Winpcap-users] How to exit pcap_loop?




  I want to end pcap_loop when push any (or specific) button on keyboard. How is this possible? Any suggestion? I use:
  pcap_loop(handle, -1, got_packet, (unsigned char *)file4);


  and want to capture packets until one of button is pushed. Maybe any other function?

  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/20070427/98a78021/attachment.htm


More information about the Winpcap-users mailing list