Hi,
I'm writing an application that runs 2 worker threads. The first thread keeps 
capturing packets within a loop for a specified period of time using pcap_next_ex(), 
for every captured packet it enqueues it into a queue. The second thread just dequeues 
the captured packets and performs some operations. My question is, while the second 
thread is running, their is still network activity going on and I want to make sure I 
am capturing those packets as well!!!! Is this doable using my design. On the other 
hand I cant revert to a design with 1 thread capturing all the packets and then doing 
all the processing, because what usually happens is that a huge capture time causes 
the application to crash reporting memory overflows.
Any help would be appreciated
Regards

Sherif Fanous
Software Engineer
Netcelera, ITWorx




================================================================= This is the WinPcap 
users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
=================================================================

Reply via email to