<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>How to exit pcap_loop?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

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

</BODY>
</HTML>