PowerTCP SSH and SFTP for .NET
OpenSession(Int32) Method




The intial window size to send to the server.
Opens a new Session on this connection.
Syntax
'Declaration
 
Public Overloads Function OpenSession( _
   ByVal windowSize As Integer _
) As Session
'Usage
 
Dim instance As Connection
Dim windowSize As Integer
Dim value As Session
 
value = instance.OpenSession(windowSize)
public Session OpenSession( 
   int windowSize
)
public: Session* OpenSession( 
   int windowSize
) 
public:
Session^ OpenSession( 
   int windowSize
) 

Parameters

windowSize
The intial window size to send to the server.

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).

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