I have a question, Imagine I have a thread which captures packets and process them itself.
With pcap_next_ex
: I would use a loop and I would process the packets in each interaction, suppose I call Sleep(200)
to simulate the stuff. With pcap_next_ex
I would arrive a moment when I would lose packets.
With pcap_loop
: I would use a callback to a packet handler for each packet incoming it would work like an event. In the packet handler I would treat the packets and suppose I call Sleep(200)
to simulate the stuff. Would I lose packets?.