The TelnetOption class enables developers to implement and use existing and future TELNET protocol options. The framework is specified in RFC 855 and standard options are specified in separate RFC documents.

Namespace: Jscape.Telnet
Assembly: Jscape.Telnet (in Jscape.Telnet.dll) Version: 2.6.1.0

Syntax

C#
[SerializableAttribute]
public class TelnetOption
Visual Basic
<SerializableAttribute> _
Public Class TelnetOption
Visual C++
[SerializableAttribute]
public ref class TelnetOption

Remarks

Notes for subclassing:
For some options (i.e. ECHO or BINARY), it is enough to pass an option code to the constructor to be able to use it. Many options, however, use subnegotiation and the TelnetOption class should be subclassed. For those options requiring subnegotiation the option class should set
CopyC#
optioncode
in constructor and override methods
CopyC#
ReadSubnegotation
and WriteSubnegotiation for formatting/parsing option specific data.

Inheritance Hierarchy

See Also