Creates a new Telnet instance.

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

Syntax

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

Parameters

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

Examples

To create a Telnet instance, pass a hostname or IP address as the argument to its constructor. By default, Port 23 will be used.
CopyTelnet Instance
Telnet telnet = new Telnet("localhost");

CopyTelnet Instance
telnet = New Telnet("localhost")

See Also