PowerTCP Emulation for .NET CF
SetStream(Stream,Int32,ThreadPriority) Method
See Also  Send comments on this topic.
Dart.Emulation Namespace > Vt Class > SetStream Method : SetStream(Stream,Int32,ThreadPriority) Method




stream
The System.IO.Stream to be used.
bufferSize
The buffer size to use when reading from the stream.
threadPriority
The priority of the thread on which data is read from the stream.
Specifies the stream to be used by the Vt control in auto send/receive mode.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SetStream( _
   ByVal stream As Stream, _
   ByVal bufferSize As Integer, _
   ByVal threadPriority As ThreadPriority _
) 
Visual Basic (Usage)Copy Code
Dim instance As Vt
Dim stream As Stream
Dim bufferSize As Integer
Dim threadPriority As ThreadPriority
 
instance.SetStream(stream, bufferSize, threadPriority)
C# 
public void SetStream( 
   Stream stream,
   int bufferSize,
   ThreadPriority threadPriority
)
Managed Extensions for C++ 
public: void SetStream( 
   Stream* stream,
   int bufferSize,
   ThreadPriority threadPriority
) 
C++/CLI 
public:
void SetStream( 
   Stream^ stream,
   int bufferSize,
   ThreadPriority threadPriority
) 

Parameters

stream
The System.IO.Stream to be used.
bufferSize
The buffer size to use when reading from the stream.
threadPriority
The priority of the thread on which data is read from the stream.

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.

The readLog parameter can be used to create a log of all data read from the provided stream. This is especially useful for debugging purposes.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.