I am using Windows XP and winpcap_3_1_beta_3 to capture packets of a particular network protocol. The capture loop appears below: FD_VERSANET_HANDLE = pcap_getevent(FD_VERSANET);

do
{
// WaitForSingleObject(FD_VERSANET_HANDLE, INFINITE);
res = pcap_next_ex( FD_VERSANET, &header, &vnLaninBuf);
if (res == 0)
continue; /* timeout */
printf("got one %d\n", header->caplen);



} while (TRUE);

If the WaitForSingleObject is commented out, it works fine, and the printf executes. If the Wait is compiled in, the event is never signaled and the
WaitFor does not return. Am I using the event incorrectly, or??? Any help would be appreciated, or if it is perhaps a bug I would be glad to help
find it.


Bill Campbell




================================================================== 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