It depends on how you catch the packets. Some of the functions return if no packets are caught, and putting this in a while (1) loop, will cause it to run at 100 %. Some other functions like pcap_loop, wait for the lpAdapter->ReadEvent to occur before returning.
If you want to use the event handling, to limit the processor time, you can set the line WaitForSingleEvent(lpAdapter->ReadEvent);. To get more information about the event, i recommend browsing through the Packet.dll and winpcap source code files. - Jesper -----Original Message----- From: David [mailto:[EMAIL PROTECTED]] Sent: fredag, juli 05, 2002 18:25 To: [EMAIL PROTECTED] Subject: [WinPcap-users] How does Analyzer works ? Hello, When I used the winpcap driver for reading packets, I has to ask to the driver if there are packets to be read. And the CPU is always 100% When I run Analyzer, the cpu depends of the trafic ? David Rodriguez
