
You can queue multiple BeginSends at the same time. You don’t need to lock
编辑:
更有趣的信息:
如果您在Remark section of the MSDN doc BeginSend()中向下滚动一下,您将发现有趣的使用可能与您相关的回调方法.
总结[…] If you want the original thread to block after you call the BeginSend method,use the WaitHandle.WaitOne method. […]
以上是内存溢出为你收集整理的c# – 异步写入套接字线程安全吗?全部内容,希望文章能够帮你解决c# – 异步写入套接字线程安全吗?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)