The TelnetSession type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
TelnetSession(String) |
Creates a new TelnetSession instance.
|
![]() |
TelnetSession(String, Int32) |
Creates a new TelnetSession instance.
|
Methods
Name | Description | |
---|---|---|
![]() |
Connect |
Establishes connection with TELNET server and performs login using
specified username and password.
|
![]() |
DebugMessage |
Writes additional debug information to the debug stream.
|
![]() |
Disconnect |
Disconnects from TELNET server.
|
![]() |
Equals | (Inherited from Object.) |
![]() |
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.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
OnDoOption |
Telnet DoOption Event method.
|
![]() |
OnWillOption |
Telnet WillOption Event method.
|
![]() |
Send(String) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
Send(String, Int32) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
SendNoWait |
Sends command to TELNET server terminated by command terminator.
|
![]() |
SendRaw |
Sends raw data to TELNET server.
|
![]() |
SendWait(String, String) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
SendWait(String, String, Boolean) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
SendWait(String, String, Int32) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
SendWait(String, String, Boolean, Int32) |
Sends command to TELNET server terminated by command terminator.
|
![]() |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() |
CommandTerminator |
Gets/Sets the command terminator used when sending data to
TELNET server. Default is "\n".
|
![]() |
Debug |
Gets/Sets TelnetSession debug mode.
|
![]() |
DebugStream |
Gets/Sets TelnetSession debug stream.
|
![]() |
Encoding |
Gets/Sets the Encoding used when converting between
string and bytes. Default is Encoding.UTF8
|
![]() |
Hostname |
Gets/Sets the TELNET server host name or IP address.
|
![]() |
LicenseKey |
License key.
|
![]() |
LoginPrompt |
Gets/Sets login prompt to wait for before sending username.
Default is "login:".
|
![]() |
LoginPromptRegex |
Gets/Sets if the login prompt is a regular expression.
Default is false
|
![]() |
Password |
Gets/Sets the password used to log in to the TELNET server.
|
![]() |
PasswordPrompt |
Gets/Sets the password prompt to wait for before sending password.
Default is "Password:".
|
![]() |
PasswordPromptRegex |
Gets/Sets if the password prompt is a regular expression.
Default is false
|
![]() |
Port |
Gets/Sets the TELNET server port number. Default is 23.
|
![]() |
SendBeforeLoginPrompt |
Gets/Sets the value to send before login prompt.
|
![]() |
SessionTimeout |
Gets/Sets the TelnetSession timeout in milliseconds for all
running tasks to complete. Default timeout is 120000ms (120 seconds).
|
![]() |
ShellPrompt |
Gets/Sets the shell prompt to wait for before sending commands.
Default is "$".
|
![]() |
ShellPromptRegex |
Gets/Sets if the shell prompt is a regular expression.
Default is false
|
![]() |
Username |
Gets/Sets the user name used to log in to the TELNET server.
|