PowerTCP Emulation for .NET
State Property (Option)




Gets or sets the current state of the Option.
Syntax
<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);
}

Property Value

An OptionState value representing the current state of the Option.
Remarks

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:

See Also

Reference

Option Class
Option Members


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic