电容性能

发布于 2024-09-08 09:38:23 字数 52 浏览 3 评论 0原文

哪种 Pcap 升 ​​C 音包装器速度最快? 与使用套接字相比,PCap 的速度有多快?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

还不是爱你 2024-09-15 09:38:23

SharpPcap 适用于捕获(嗅探)和传输(类似到 UdpClient 和 TcpClient)。我已在高性能 UDP 传输的应用程序中使用它,并且可以将其调整为比 UdpClient 快得多(源代码中有高性能发送的示例)。

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

自由如风 2024-09-15 09:38:23

我相信 Pcap.Net 比其他包装器更快,因为它使用 C++/CLI 包装而不是 PInvoke。

一般来说,我从未遇到过 WinPcap 的性能问题(这也取决于您如何使用它)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文