[Mono-list] blocking calls Ssl client and server streams
constructors
Arijit Ganguly
aganguly at gmail.com
Thu Feb 16 22:05:12 EST 2006
Hello,
I want to know if SslClientStream/SslServerStream constructors block until
handshake for establishing a secure channel is on. I do not want my current
thread to block on a socket, and therefore I plan to put the creation of
client and server streams inside Begin/End Invoke.
Does the same apply to SslStream::Close() too: is it a blocking call?
Finally, I am listening on a number of secure sockets in a single thread. I
use Select to handle multiple reads/writes in the same thread.
The issue is in .NET we can only select sockets, and not streams. For secure
channels, we can only read and write from streams. Is it okay if I Select
on multiple sockets, and then do reads/writes on their associated SslClient
or Server streams.
Looking forward to your reply.
Arijit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060216/295bba47/attachment.html
More information about the Mono-list
mailing list