PowerTCP Emulation for .NET
CommandReceived Event




Raised when a Telnet command is received from the server.
Syntax
Public Event CommandReceived As EventHandler(Of CommandEventArgs)
Dim instance As Telnet
Dim handler As EventHandler(Of CommandEventArgs)
 
AddHandler instance.CommandReceived, handler
public event EventHandler<CommandEventArgs> CommandReceived
public: __event EventHandler<CommandEventArgs*>* CommandReceived
public:
event EventHandler<CommandEventArgs^>^ CommandReceived
Event Data

The event handler receives an argument of type CommandEventArgs containing data related to this event. The following CommandEventArgs properties provide information specific to this event.

PropertyDescription
Command The command sent by the remote host.  
OptionCode The option pertaining to the received command.  
SubOption Suboption pertaining to the received command.  
Remarks

A CommandEventArgs object containing information required to handle the command is provided to the event handler. For example, CommandEventArgs.Command contains the Command sent from the server.

If a reply is sent to the server using SendOption from within the event handler, it is assumed option negotiation will be handled by the developer and automatic option negotiation is turned off.

This event is not marshaled to the UI thread, even if the SynchronizingObject is set.

See Also

Reference

Telnet Class
Telnet Members


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