PowerTCP SSH and SFTP for .NET
SessionStream Class Methods


For a list of all members of this type, see SessionStream members.

Public Methods
 NameDescription
Public MethodBeginReadBegins an asynchronous read operation. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream)
Public MethodBeginWriteBegins an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream)
Public MethodCloseOverridden.  Closes the stream.  
Public MethodCopyToOverloaded. Reads the bytes from the current stream and writes them to another stream. (Inherited from System.IO.Stream)
Public MethodCopyToAsyncOverloaded. Asynchronously reads the bytes from the current stream and writes them to another stream. (Inherited from System.IO.Stream)
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDisposeOverloaded. Overridden.  Releases the unmanaged resources used by the Stream and optionally releases the managed resources.  
Public MethodEndReadWaits for the pending asynchronous read to complete. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream)
Public MethodEndWriteEnds an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream)
Public MethodFlushOverridden.  Default implementation is no-op. May be overridden by derived classes.  
Public MethodFlushAsyncOverloaded. Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Inherited from System.IO.Stream)
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodReadOverloaded. Overridden.  Reads session data provided by the SSH-2 host.  
Public MethodReadAsyncOverloaded. Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Inherited from System.IO.Stream)
Public MethodReadByteReads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Inherited from System.IO.Stream)
Public MethodReadToEnd Receives data until the connection is closed.  
Public MethodSeekOverridden. This method throws a System.NotSupportedException.  
Public MethodSetLengthOverridden.  This method throws a NotSupportedException.  
Public MethodWriteOverloaded. Overridden.  Writes user data to a stream that is received by the SSH-2 host.  
Public MethodWriteAsyncOverloaded. Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Inherited from System.IO.Stream)
Public MethodWriteByteWrites a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from System.IO.Stream)
Top
Protected Methods
 NameDescription
Protected MethodCreateWaitHandleAllocates a System.Threading.WaitHandle object. (Inherited from System.IO.Stream)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodObjectInvariantProvides support for a System.Diagnostics.Contracts.Contract. (Inherited from System.IO.Stream)
Top
See Also

Reference

SessionStream Class
Dart.Ssh Namespace


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