[Winpcap-users] pcap_loop wait
guy at alum.mit.edu
Fri Feb 14 23:10:14 UTC 2014
On Feb 14, 2014, at 4:42 AM, "MARTIN, Jean-loic (FR - SX)" <jean-loic.martin at fr.meggitt.com> 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:
The libpcap equivalent is to use pcap_create() and pcap_activate() and, between the pcap_create() and pcap_activate() calls, call
in libpcap 1.5 and later (or to set immediate mode in a platform-dependent fashion in previous releases).
More information about the Winpcap-users