PowerTCP Emulation for .NET
SetStream(Stream) Method




The System.IO.Stream to be used.
Specifies the stream to be used by the Vt control in auto send/receive mode.
Syntax
Public Overloads Sub SetStream( _
   ByVal stream As Stream _
) 
Dim instance As Vt
Dim stream As Stream
 
instance.SetStream(stream)
public void SetStream( 
   Stream stream
)
public: void SetStream( 
   Stream* stream
) 
public:
void SetStream( 
   Stream^ stream
) 

Parameters

stream
The System.IO.Stream to be used.
Remarks

Although the Vt control can work with data from any source (file, memory, etc.) its most common usage is displaying data received over an Internet connection. This method provides automatic reading/writing from/to any System.IO.Stream.

A connection must be established with the remote host prior to calling this method. Once called, any data received is automatically displayed in the Vt window. Any key presses on the Vt window are automatically sent over the established connection.

Typical use would be to use Telnet.GetStream or Rlogin.GetStream with this method.

This method uses a default buffer size of 1024 and ThreadPriority.Lowest. Use SetStream(Stream,Int32,ThreadPriority) to specify an alternative buffer size or thread priority.

See Also

Reference

Vt Class
Vt Members
Overload List


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic