[Winpcap-users] How to break the pcap_loop

NARAHARI UPADHYA narahari.u at samsung.com
Fri May 11 05:20:58 GMT 2007


I am developing an MFC application which uses Winpcap to capture packets.
I am using pcap_loop as follows:

pcap_loop(adhandle, 0, (pcap_handler)CCaptureThread::packet_handler, NULL);

and the packet handler function is something like:
void CCaptureThread::packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data)
	//capture the packet..		

How do i break out of this pcap_loop?
even using break_loop() after pcap_loop doesn't seem to work.

Thanks and Regards,

Narahari Upadhya

More information about the Winpcap-users mailing list