I want to end pcap_loop when push any (or specific) button on keyboard. How is this possible? Any suggestion? I use:
pcap_loop(handle, -1, got_packet, (unsigned char *)file4);
and want to capture packets until one of button is pushed. Maybe any other function?
Thanks