Hello, Sorry for that, I found the information I want browsing the documentation: /* * FROM WINPCAP DOC * Important note, read carefully! * If you are writing a capture application and you do not have particular/low level * requirements, you are recommended to use the functions of wpcap, that are compatible * with the ones of the Unix packet capture library (libpcap), instead of the API described * in this chapter. wpcap.dll relies on packet.dll, but provides a more powerful, * immediate and easy to use programming environment. With wpcap.dll, operations like capturing * a packet, creating a capture filter or saving a dump on a file are safely implemented and * intuitive to use. * Moreover, the programs written to use libpcap are easily compiled on Unix thanks to the * compatibility between Win32 and Unix versions of this library. * * As a consequence, since the normal and suggested way for an application to use WinPcap is through wpcap.dll, * we cannot guarantee that the packet.dll API will not be changed in the future releases. */
Regards, Pierre. -----Original Message----- From: Pierre Pacchioni [mailto:[EMAIL PROTECTED] Sent: dimanche 27 juillet 2003 18:16 To: [EMAIL PROTECTED] Subject: [WinPcap-users] Using Winpcap Hello, Browsing the examples plus the documentation, it seems that there are two different APIs on how to use Winpcap lib. For instance, to listen or capture Ethernet packets, PacketReceivePacket(lpAdapter,lpPacket,TRUE) or pcap_loop(adhandle, 0, packet_handler, NULL); seem to do the trick. I didn't find in the documentation anything indicating which one should be preferably used (for instance, examples TG or TestApp uses one although tcptop and pktdump use the other one). In the documentation it seems that only one is mentionned. Can someone tell me the difference between these two APIs and which one should be used, Thanks in advance for your help, Cheers, Pierre ================================================================== 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] ==================================================================
