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,
	int port
)
Visual Basic
Public Sub New ( _
	host As String, _
	port As Integer _
)
Visual C++
public:
Telnet(
	String^ host, 
	int port
)

Parameters

host
Type: System..::..String
The TELNET server host name or IP address.
port
Type: System..::..Int32
The TELNET server port number. Default is port 23.

Examples

To create a Telnet instance, pass a hostname or IP address and port number as arguments to its constructor.
CopyTelnet Instance
Telnet telnet = new Telnet("localhost", 23);

CopyTelnet Instance
telnet = new Telnet("localhost", 23)

See Also