The Telnet type exposes the following members.

Constructors

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

Methods

  Name Description
Public method CommandRead
Interprets a telnet command received from the Telnet NetworkStream.
Public method Connect
Establishes a telnet connection to the server specified in the Telnet constructor.
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method DebugMessage
Writes additional debug information to the debug stream.
Public method Disconnect
Disconnects from TELNET server.
Public method Dispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected method Dispose(Boolean)
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public method FireConnectedEvent
Fires ConnectedEvent event.
Public method FireDataReceivedEvent
Fires DataReceivedEvent event.
Public method FireDisconnectedEvent
Fires DisconnectedEvent event.
Public method FireDontOptionEvent
Fires DontOptionEvent event.
Public method FireDoOptionEvent
Fires DoOptionEvent event.
Public method FireSubOptionEvent
Fires SubOptionEvent event.
Public method FireWillOptionEvent
Fires WillOptionEvent event.
Public method FireWontOptionEvent
Fires WontOptionEvent event.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetOutputStream
Gets the output stream of the socket connection.
Protected method GetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected method MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method SendCommand(Int32)
Sends telnet command.
Public method SendCommand(Int32, Int32)
Sends Telnet Command and associated Paramter to TELNET server.
Public method SendDontOption
Sends a telnet DONT command.
Public method SendDoOption
Sends a telnet DO command.
Public method SendSubOption
Sends telnet sub option.
Public method SendWillOption
Sends a telnet WILL command.
Public method SendWontOption
Sends a telnet WONT command.
Public method ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)

Fields

  Name Description
Protected field Static member AO
Telnet command : Abort output.
Protected field Static member AYT
Telnet command : Are You There.
Protected field Static member BEL
Telnet special character : Bell.
Protected field Static member BRK
Break. NVT character BRK.
Protected field Static member BS
Telnet special character : Backspace.
Protected field Static member CR
Telnet special character : Carriage Return.
Protected field Static member DM
Telnet command : Data Mark.
Protected field Static member DO
Telnet command : DO.
Protected field Static member DONT
Telnet command : DON'T.
Protected field Static member EC
Telnet command : Erase character.
Protected field Static member EL
Telnet command : Erase line.
Protected field Static member FF
Telnet special character : Form Feed.
Protected field Static member GA
Telnet command : Go ahead.
Protected field Static member HT
Telnet special character : Horizontal Tab.
Protected field Static member IAC
Telnet command : Interpret as Command.
Protected field input
Input stream for telnet.
Protected field Static member IP
Telnet command : Interrupt Process.
Protected field Static member LF
Telnet special character : Line Feed.
Protected field Static member NOP
Telnet command : No operation.
Protected field Static member NULL
Telnet special character : No operation.
Protected field output
Output stream for telnet.
Protected field Static member SB
Telnet command : Subnegotiation begin.
Protected field Static member SE
Telnet command : End of subnegotiation parameters.
Protected field Static member VT
Telnet special character : Vertical Tab.
Protected field Static member WILL
Telnet command : WILL.
Protected field Static member WONT
Telnet command : WON'T.

Properties

  Name Description
Protected property CanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public property Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public property Debug
Gets/Sets Telnet debug flag.
Public property DebugStream
Gets/Sets debug output stream.
Protected property DesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Public property Encoding
Gets/Sets the Encoding used when converting between string and bytes. Default is Encoding.UTF8
Protected property Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public property Hostname
Gets/Sets the TELNET server host name.
Public property LicenseKey
License key.
Public property Port
Gets/Sets the TELNET server port number.
Public property ReadTimeout
Gets or sets the amount of time a Socket will wait to receive data once initiated.
Public property Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public property Timeout
Gets/Sets the Socket Timeout parameter.

Events

  Name Description
Public event ConnectedEvent
Occurs after a successful connection to the TELNET server.
Public event DataReceivedEvent
Occurs after successfully reading data from the TELNET server.
Public event DisconnectedEvent
Occurs after a successful disconnection from the TELNET server.
Public event Disposed
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.)
Public event DontOptionEvent
Occurs afer a successful DONT option is received from the TELNET server.
Public event DoOptionEvent
Occurs after a successful DO option is received from the TELNET server.
Public event SubOptionEvent
Occurs after a successful DOSUB option is received from the TELNET server.
Public event WillOptionEvent
Occurs after a successful WILL option is received from the TELNET server.
Public event WontOptionEvent
Occurs after a successful WONT option is received from the TELNET server.

See Also