在 C# .Net 4 中使用哪个 IP 框架(如果有)
看来 System.net.Sockets 在 .Net 早期版本的多线程应用程序中存在一些性能问题。并且 SocketAsyncEventArgs 的创建(至少部分)是为了解决这些问题。然而,看起来使用 SocketAsyncEventArgs 并使其正确是一个不平凡的过程,如 文章。
我看过一些可能有用的框架 http://nitoasync.codeplex.com/ & http://supersocket.codeplex.com/
如果我正在寻找使用托管代码的 TCP 应用程序的最大性能我应该围绕 SocketAsyncEventArgs 编写吗?并冒着在生产中发现性能问题的风险,这些问题在测试中无法复制,或者我应该使用上述框架之一吗?
我使用 C# 的时间不长。我的大部分经验都是在 C++ 领域,但我在这方面的经验为零。我使用.Net 4
It seems that System.net.Sockets had some performance problems in multithreaded applications in previous versions of .Net. and that SocketAsyncEventArgs was (At least partially) created to address these. However it looks like using SocketAsyncEventArgs and getting it right is a nontrivial process as shown in this article.
Ive looked at some frameworksthat might be of use http://nitoasync.codeplex.com/ & http://supersocket.codeplex.com/
If I was looking for Maximum performance in an TCP application using managed code should I write around SocketAsyncEventArgs? and run the risk of discovering performance problems in production which are impossible to replicate in testing or should I use one of aforementioned frameworks?.
I am not working with C# that long. Most of my experience has been in C++ but I have zero experience in this area. Im using .Net 4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在寻找免费的东西,我在 SuperSocket 方面有很好的经验。
但是,如果您需要更多功能...http://www.chilkatsoft.com/socket -dotnet.asp 确实值得多花一毛钱。
定期更新,并且非常易于使用。很多示例,以及大部分完整/良好的文档(一些功能(很少),包含“待记录”)
这些示例确实使它们与众不同,我认为。
If you're looking for something free, I've had good experiences with SuperSocket.
However, if you need a bit more functionality...http://www.chilkatsoft.com/socket-dotnet.asp is really worth the extra dime.
Regular updates, and very easy to work with. Lots of examples, and thorough/good documentation for the most part (some of the functions (very few), contain a "To be documented")
The examples are really what sets them apart, imo.