SSLStream.BeginRead 和 IOCP
就像套接字 Begin\End 方法使用 IOCP 一样,对于 SSLStream Begin\End Read\Write 方法也是如此吗?
如果不是,如何在 SSL 上扩展 tcp\ip 服务器 谢谢
Just like socket Begin\End methods use IOCP, would that also be true for SSLStream Begin\End Read\Write methods
if not how do you get a tcp\ip server on SSL to scale
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于
SslStream
大概是包裹在常规的SocketStream
周围,我想说这很有可能,因为在某些时候,异步SslStream
将会有对底层流执行读取。 它通过底层流上的异步读取来实现这一点是唯一合乎逻辑的。话虽如此,我无法给您 100% 确定的答案,但除非您准备好使用 SSL 库或“实现您自己的库”,即使没有,这是否会阻止您使用
SslStream< /代码>?
Since the
SslStream
presumably is wrapped around a regularSocketStream
I would say this is highly likely, because at some point the asyncSslStream
is going to have to perform a read on the underlying stream. It is only logical that it would implement this in terms of an async read on the underlying stream.Having said that I cannot give you a 100% certain answer, but unless you are prepared to go with an SSL library or 'implement your own', even if it didn't, would that deter you from using the
SslStream
?