> Now, in my application I need to be doing some
> processing regardless of the packets coming in or not.
> The only clean way of doing this is to use a
> multithreaded approach

What sort of "other processing" are you doing?

Could you not use "select()" or "poll()" to multiplex operations?  Or
use non-blocking I/O?

Even on OSes where "pcap_dispatch()" does *eventually* return in the
absence of packets, "eventually" isn't the same as "immediately", so
your application would *still* sit there twiddling its thumbs, rather
than doing other processing.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to