lost SIGTERM signal handler and winpcap....

2008-03-28 Thread S A
Hi (I've posted this question on the winpcap mailing list but didn't get a response - just thought I'd check here too) I'm using Winpcap 4.0.2 in a cygwin application for local packet capture. My application registers a SIG_TERM signal handler. But once i call pcap_next_ex(), my signal h

get_osfhandle & WaitForSingleObject on a cygwin socket fd....

2007-12-20 Thread S A
Hi Please bear with me if this is a stupid question but I'm trying to setup a telnet socket in cygwin and then want to use a Windows wait semaphore (WaitForMultipleObjects) to combine it with a sleep for winpcap HANDLEs. I thought I'd test this first though. Does get_osfhandle() on a AF_I

FW: Combining winpcap packet wait with poll/select in cygwin

2007-12-20 Thread S A
Hi Brian Finally got a change to try this (sorry it tooks so long). It looks like it does NOT work. The fd returned from cygwin_attach_handle_to_fd() always returns from the poll call with a POLLIN event even though no packets are flowing on the network (and hence there should be no pcap packe

FW: Combining winpcap packet wait with poll/select in cygwin

2007-12-13 Thread S A
Hi all (I've tried this question on the winpcap-users list already with no luck). Summary: Has anyone tried to have events (POLL_IN/POLL_OUT) on regular fd descriptors combined with winpcap packet receive handles incorporated into the same sleep event (i.e. poll