Ok thanks , i will test this flag PCAP_OPENFLAG_MAX_RESPONSIVENESS

Best regards / Cordialement,

Jean-Loïc MARTIN
Software engineer/ Ingénieur développement logiciel

Meggitt Sensing Systems "MSS"
196 rue Louis Rustin
BP63108
Archamps Technopole
74166 Archamps
FRANCE

(tel) +33 (0) 450 95 43 55 Poste : 519
[email protected]

www.meggitt.com
www.sensorex.fr
 N'imprimez que si necessaire / Print only if necessary

-----Message d'origine-----
De : [email protected] 
[mailto:[email protected]] De la part de Guy Harris
Envoyé : samedi 15 février 2014 00:10
À : [email protected]
Objet : Re: [Winpcap-users] pcap_loop wait


On Feb 14, 2014, at 4:42 AM, "MARTIN, Jean-loic (FR - SX)" 
<[email protected]> wrote:

> Is there a special configuration to call the packet handler function directly 
> when a packet is received without wait the timeout ?

Use pcap_open() and open with the PCAP_OPENFLAG_MAX_RESPONSIVENESS flag:

        
http://www.winpcap.org/docs/docs_412/html/group__remote__open__flags.html

The libpcap equivalent is to use pcap_create() and pcap_activate() and, between 
the pcap_create() and pcap_activate() calls, call

        pcap_set_immediate_mode(handle, 1);

in libpcap 1.5 and later (or to set immediate mode in a platform-dependent 
fashion in previous releases).
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to