input notification size to 0 by pcap_setmintocopy(dev, 0) and probably fix the problem.
See my previous question [WinPcap-users] Question/problem regarding pcap_getevent.
Bill
Benny Ben-Ami wrote:
I'm quiet familiar with ACE reactor and used it in number of projects
before. As it seems that pcap_fileno is not supported on the Windows
Platform, I tried to use WFMO_Reactor, which uses WaitForMultipleObjects as
the event demultiplexer. This is the first time I use this kind of reactor.
I've tried to register the pcap handler in the following way:
reactor.register_handler(pcap_getevent(dev),handler,ACE_Event_Handler::ALL_E
VENTS_MASK);
However, I don't seems to get any input events after using: ACE_Thread_Manager::instance()->wait();
(I do get timer events which I set up, hence I think the reactor works fine).
Benny
-----Original Message-----
From: Robert Thornthwaite [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 9:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [WinPcap-users] winpcap and ACE
Hi Benny,
Try studying the example programs for Reactor in the examples directory.
It looks to me like you have to make a winpcap handler class using
ACE_Event_Handler as a base class. I have found ACE to be very useful.
Good luck.
Robert Thornthwaite Input/Output, Inc.
Hi,
I'm writing a cross platform application. I'm using ACE
(www.cs.wustl.edu/~schmidt/ACE.html) as the framework. I need to sniff packets and wanted to use winpacap for that. My application process events from number of sources (file descriptors and timers) using the reactor class. I've tried to register the pcap file descriptor (i.e. pcap_fileno() ) with the reactor, but without a success. I've read that this function does not work on Win32 platforms (which is currently my development env). Is there a way that I can get a file descriptor to be used with the ACE reactor?
Tnx,
Benny
====================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED] ======================
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
