PCap performance
Which c-sharp wrapper of Pcap is fastest? Ho开发者_如何学Gow fast is PCap compared to using sockets?
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).
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).
精彩评论