<div>problem:</div> <div> </div> <div>here's my code in brief:</div> <div> </div> <div>void CButton::onButtonCapture(){</div> <div> </div> <div>open a device handle;</div> <div> </div> <div>while(pcap_next_ex())//capture packets;</div> <div> </div> <div>}</div> <div> </div> <div>?How do i break out or stop a pcap_next_ex() loop whenever i want ?</div> <div>?How does the timeout value in pcap_next_ex() parameters work ?</div> <div> </div> <div> </div> <div>joe</div><p>
        
                <hr size=1>Yahoo! Mail goes everywhere you do. <a href="http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/services?promote=mail"> Get it on your phone</a>.