"Yakov Lerner" <[EMAIL PROTECTED]> said: > What's the best method to stop the [blocking] pcap_next_ex() > (or a pcap_loop()) from other thread ? I need to stop pcap_loop() > (running in thread1) from other thread (thread2).
I assume you mean WinPcap is blocking in PacketReceivePacket(). If so you can signal the 'AdapterObject->ReadEvent' via some pointer trickery of the pcap_t object. Use SetEvent() etc. Look at Packet32.[ch]. --gv ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
