My "other processing" is some regular housekeeping
tasks which must be done periodically so there is no
use of select on that front.
 
But are you suggesting to use a select call on the
pcap capture itself? I was under the impression that
this was not possible in Linux. I dont see any file
descriptors in the Public API for libpcap which I
could issue  a non blocking select call on.  However
when I look into the sources I do see a file
descriptor as a member of the struct pcap_t. If that
is the case couldn't libpcap be able to add the
functionality of returning out of the pcap_dispatch in
the absence of packets, by doing a non blocking select
call on that fd? 
 
(I am referring to Linux  RH6.2, and the fd I saw was
in the definition of the struct pcap in pcap-int.h)

Thanks for your help!
Joe

> What sort of "other processing" are you doing?
> 
> Could you not use "select()" or "poll()" to
> multiplex operations?  Or
> use non-blocking I/O?
> 



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-
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