PowerTCP SSH and SFTP for .NET
OpenSession() Method




Opens a new Session on this connection.
Syntax
'Declaration
 
Public Overloads Function OpenSession() As Session
'Usage
 
Dim instance As Connection
Dim value As Session
 
value = instance.OpenSession()
public Session OpenSession()
public: Session* OpenSession(); 
public:
Session^ OpenSession(); 

Return Value

A Session object.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionThrown when the underlying connection is closed or not authenticated.
Remarks

Works only after a successful authentication. No limit is imposed on the number of concurrent sessions (however, some SSH servers may enforce a limit). An initial window size of 30KB is sent to the server.

See Also

Reference

Connection Class
Connection Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic