bsobaid
bsobaid

Reputation: 975

PCap performance

Which c-sharp wrapper of Pcap is fastest? How fast is PCap compared to using sockets?

Upvotes: 3

Views: 2070

Answers (2)

Pat
Pat

Reputation: 16891

SharpPcap is appropriate both for capture (sniffing) and transmission (similar to UdpClient and TcpClient). I've used it in an application for high-performance UDP transmission and it could be tweaked to be significantly faster than UdpClient (there are examples of high-perf sending in the source).

Upvotes: 1

brickner
brickner

Reputation: 6585

I believe Pcap.Net is faster than other wrappers since it uses C++/CLI wrapping instead of PInvoke.

In general I've never encountered performance issues with WinPcap (it also depends how you use it).

Upvotes: 0

Related Questions