<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT face=Arial>hi to all..thanks for your replies..</FONT></P>
<P><FONT face=Arial>1) option read_timeout : i didn t understand from
documentation what it does..i think it is only a way to read many packets
instead only one at same time..</FONT></P>
<P><FONT face=Arial>2) traffic arriving in non sniffing period must be
delivered... i dont sniff it but it is important too...</FONT></P>
<P><FONT face=Arial>3)there is a way to stop the loop function and so stop
sniffing??maybe pcap_breakloop( )?</FONT></P>
<P><FONT face=Arial></FONT> </P>
<P><FONT face=Arial>i think i ll do as Vasily said:</FONT></P>
<P><FONT face=Arial>1) start sniffing, remember the time of that moment.<BR>2)
after new packet received - check the current time if 3 seconds are elapsed
since item 1.<BR><TT>3) If not </TT><TT>elapsed </TT><TT>then continue
sniffing.</TT><BR></FONT><TT><FONT face=Arial>4) else - sleep(10 seconds) and go
to item 1.<BR></FONT><BR></TT></P>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial color=#0000ff></FONT> </DIV>
<P><BR>-----Messaggio originale-----<BR>Da: winpcap-users-bounces@winpcap.org
[<A
href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</A>]
Per conto di Guy Harris<BR>Inviato: mercoledì 1 marzo 2006 0.40<BR>A:
winpcap-users@winpcap.org<BR>Oggetto: Re: [Winpcap-users] Sniffing every tot
seconds..<BR><BR><BR>On Feb 27, 2006, at 1:48 AM, Francesco Tabbita (IT)
wrote:<BR><BR>> Hi to all! I must sniff traffic for 2-3 seconds every
10<BR>> seconds.....that is: sniff for 3 seconds....wait 10
seconds...sniff<BR>> for 3 seconds...wait 10 seconds...<BR><BR>What do you
want to do with traffic that arrives during the 10-second periods when you're
*not* sniffing? Do you want it to be
discarded?<BR><BR>_______________________________________________<BR>Winpcap-users
mailing list<BR>Winpcap-users@winpcap.org<BR><A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A></FONT>
</P></BODY></HTML>