Telnet Factory for .NET

TelnetSession Members

TelnetSession overview

Public Instance Constructors

TelnetSession Overloaded. Initializes a new instance of the TelnetSession class.

Public Instance Properties

CommandTerminatorGets/Sets the command terminator used when sending data to TELNET server. Default is "\n".
DebugGets/Sets TelnetSession debug mode.
DebugStreamGets/Sets TelnetSession debug stream.
EncodingGets/Sets the Encoding used when converting between string and bytes. Default is Encoding.UTF8
HostnameGets/Sets the TELNET server host name or IP address.
LicenseKey License key.
LoginPromptGets/Sets login prompt to wait for before sending username. Default is "login:".
LoginPromptRegexGets/Sets if the login prompt is a regular expression. Default is false
PasswordGets/Sets the password used to log in to the TELNET server.
PasswordPromptGets/Sets the password prompt to wait for before sending password. Default is "Password:".
PasswordPromptRegexGets/Sets if the password prompt is a regular expression. Default is false
PortGets/Sets the TELNET server port number. Default is 23.
SendBeforeLoginPrompt Gets/Sets the value to send before login prompt.
SessionTimeoutGets/Sets the TelnetSession timeout in milliseconds for all running tasks to complete. Default timeout is 120000ms (120 seconds).
ShellPromptGets/Sets the shell prompt to wait for before sending commands. Default is "$".
ShellPromptRegexGets/Sets if the shell prompt is a regular expression. Default is false
UsernameGets/Sets the user name used to log in to the TELNET server.

Public Instance Methods

ConnectEstablishes connection with TELNET server and performs login using specified username and password.
DebugMessageWrites additional debug information to the debug stream.
DisconnectDisconnects from TELNET server.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
OnDoOptionTelnet DoOption Event method.
OnWillOptionTelnet WillOption Event method.
SendOverloaded. Sends command to TELNET server terminated by command terminator.
SendNoWaitSends command to TELNET server terminated by command terminator.
SendRawSends raw data to TELNET server.
SendWaitOverloaded. Sends command to TELNET server terminated by command terminator.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

TelnetSession Class | Jscape.Telnet Namespace