Dart.Emulation Namespace > Option Class : State Property |
<DefaultValueAttribute()> Public Property State As OptionState
Dim instance As Option Dim value As OptionState instance.State = value value = instance.State
[DefaultValue()] public OptionState State {get; set;}
[DefaultValue()] public: __property OptionState get_State(); public: __property void set_State( OptionState value );
[DefaultValue()] public: property OptionState State { OptionState get(); void set ( OptionState value); }
Option negotiation with PowerTCP Telnet for .NET can be broken down into three general states:
State 1 - Setting the option:
Any requested options must be added to either the ClientOptions or ServerOptions collections. Any options added to these collections are part of the automatic option negotiation. When adding new options to the collection:
State 2 - Requesting the option:
Option negotiation is typically handled internally by the Telnet component when a new connection occurs. During this time, Code is OptionCode.Waiting, indicating a request has been sent but a response has not yet been received.
State 3 - Negotiation complete:
After option negotiation has completed, check Option.Code to see the negotiation results. It should be one of two values: