Creates a new TelnetSession instance.
Namespace: Jscape.TelnetAssembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0
Syntax
C# |
---|
public TelnetSession( string host, int port ) |
Visual Basic |
---|
Public Sub New ( _ host As String, _ port As Integer _ ) |
Visual C++ |
---|
public: TelnetSession( 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 TelnetSession instance, pass the host name or IP address and port number as arguments to the constructor.
CopyTelnetSession
CopyTelnetSession

// Create a TelnetSession instance. TelnetSession session = new TelnetSession("localhost", 23);

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