The TelnetSession type exposes the following members.

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