Yes, the SshChannel
class is thread safe in mentioned manner. You can call Send and Poll+Receive concurrently.
Also, ISocket
objects created by calling SshChannel.ToSocket()
method are thread save in mentioned manner. The ISocket
object created this way simply invokes corresponding method on the parent SshChannel
object.
I would like to note that calling ISocket.Close()
closes the parent SshChannel
as well.