The TelnetSession type exposes the following members.

Constructors

  Name Description
Public method TelnetSession(String)
Creates a new TelnetSession instance.
Public method TelnetSession(String, Int32)
Creates a new TelnetSession instance.

Methods

  Name Description
Public method Connect
Establishes connection with TELNET server and performs login using specified username and password.
Public method DebugMessage
Writes additional debug information to the debug stream.
Public method Disconnect
Disconnects from TELNET server.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method OnDoOption
Telnet DoOption Event method.
Public method OnWillOption
Telnet WillOption Event method.
Public method Send(String)
Sends command to TELNET server terminated by command terminator.
Public method Send(String, Int32)
Sends command to TELNET server terminated by command terminator.
Public method SendNoWait
Sends command to TELNET server terminated by command terminator.
Public method SendRaw
Sends raw data to TELNET server.
Public method SendWait(String, String)
Sends command to TELNET server terminated by command terminator.
Public method SendWait(String, String, Boolean)
Sends command to TELNET server terminated by command terminator.
Public method SendWait(String, String, Int32)
Sends command to TELNET server terminated by command terminator.
Public method SendWait(String, String, Boolean, Int32)
Sends command to TELNET server terminated by command terminator.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property CommandTerminator
Gets/Sets the command terminator used when sending data to TELNET server. Default is "\n".
Public property Debug
Gets/Sets TelnetSession debug mode.
Public property DebugStream
Gets/Sets TelnetSession debug stream.
Public property Encoding
Gets/Sets the Encoding used when converting between string and bytes. Default is Encoding.UTF8
Public property Hostname
Gets/Sets the TELNET server host name or IP address.
Public property LicenseKey
License key.
Public property LoginPrompt
Gets/Sets login prompt to wait for before sending username. Default is "login:".
Public property LoginPromptRegex
Gets/Sets if the login prompt is a regular expression. Default is false
Public property Password
Gets/Sets the password used to log in to the TELNET server.
Public property PasswordPrompt
Gets/Sets the password prompt to wait for before sending password. Default is "Password:".
Public property PasswordPromptRegex
Gets/Sets if the password prompt is a regular expression. Default is false
Public property Port
Gets/Sets the TELNET server port number. Default is 23.
Public property SendBeforeLoginPrompt
Gets/Sets the value to send before login prompt.
Public property SessionTimeout
Gets/Sets the TelnetSession timeout in milliseconds for all running tasks to complete. Default timeout is 120000ms (120 seconds).
Public property ShellPrompt
Gets/Sets the shell prompt to wait for before sending commands. Default is "$".
Public property ShellPromptRegex
Gets/Sets if the shell prompt is a regular expression. Default is false
Public property Username
Gets/Sets the user name used to log in to the TELNET server.

See Also