<br><font size=2 face="sans-serif">I believe it's from the socket read.</font>
<br><font size=2 face="sans-serif"><br>
dw<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Loris Degioanni <loris.degioanni@cacetech.com></b></font>
<br><font size=1 face="sans-serif">Sent by: winpcap-users-bounces@winpcap.org</font>
<p><font size=1 face="sans-serif">08/29/2006 12:34 AM</font>
<br><font size=1 face="sans-serif">Please respond to winpcap-users</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: winpcap-users@winpcap.org</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: Re: [Winpcap-users] Using WipCap to reduce CPU%</font></table>
<br>
<br>
<br><font size=2 face="Courier New">Is the cpu load caused by winpcap or by the read from the socket?<br>
If the cause is WinPcap, You're definitely polling, and you should check <br>
the to_ms parameter of pcap_open_live().<br>
<br>
Loris<br>
<br>
<br>
Donald Woo wrote:<br>
> <br>
> I'm writing a VB .Net app to captured TCP/IP data from a source, it is <br>
> sending 406 byte packets approx. every 1 msec. I can perform this <br>
> capture but at a very high cost to the<br>
> cpu, somewhere between 98-100% !!!! This is just from calling the <br>
> stream read off the socket<br>
> <br>
> 'read data from socket<br>
> Dim nNumReadBytes As Integer = <br>
> m_nsReadStream.Read(m_bReadBuffer, 0, g_nNumBytesToRead)<br>
> <br>
> Can I use this to take the load off the cpu or do I need a packet <br>
> capture card?<br>
> <br>
> <br>
> dw<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> <br>
> _______________________________________________<br>
> Winpcap-users mailing list<br>
> Winpcap-users@winpcap.org<br>
> https://www.winpcap.org/mailman/listinfo/winpcap-users<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
Winpcap-users@winpcap.org<br>
https://www.winpcap.org/mailman/listinfo/winpcap-users<br>
</font>
<br>
<br>