开发者

PCap performance

开发者 https://www.devze.com 2023-01-06 13:29 出处:网络
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 TcpC

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号