[Winpcap-users] Using WipCap to reduce CPU%
Loris Degioanni
loris.degioanni at cacetech.com
Tue Aug 29 05:34:37 GMT 2006
Is the cpu load caused by winpcap or by the read from the socket?
If the cause is WinPcap, You're definitely polling, and you should check
the to_ms parameter of pcap_open_live().
Loris
Donald Woo wrote:
>
> I'm writing a VB .Net app to captured TCP/IP data from a source, it is
> sending 406 byte packets approx. every 1 msec. I can perform this
> capture but at a very high cost to the
> cpu, somewhere between 98-100% !!!! This is just from calling the
> stream read off the socket
>
> 'read data from socket
> Dim nNumReadBytes As Integer =
> m_nsReadStream.Read(m_bReadBuffer, 0, g_nNumBytesToRead)
>
> Can I use this to take the load off the cpu or do I need a packet
> capture card?
>
>
> dw
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list