Creates a new TelnetSession instance.

Namespace: Jscape.Telnet
Assembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0

Syntax

C#
public TelnetSession(
	string host
)
Visual Basic
Public Sub New ( _
	host As String _
)
Visual C++
public:
TelnetSession(
	String^ host
)

Parameters

host
Type: System..::..String
The telnet server host name or IP address.

Examples

To create a TelnetSession instance, pass the host name or IP address as the argument to the constructor. By default, Port 23 will be used.
CopyTelnetSession
// Create a TelnetSession instance.
TelnetSession session = new TelnetSession("localhost");

CopyTelnetSession
' Create a TelnetSession instance.
Dim session As TelnetSession = new TelnetSession("localhost")

See Also