PowerTCP Emulation for .NET
SendOption Method




The command to send with the option.
The option to negotiate.
Sends a Telnet option to the server.
Syntax
Public Function SendOption( _
   ByVal command As Command, _
   ByVal code As OptionCode _
) As Byte()
Dim instance As Telnet
Dim command As Command
Dim code As OptionCode
Dim value() As Byte
 
value = instance.SendOption(command, code)
public byte[] SendOption( 
   Command command,
   OptionCode code
)
public: byte[]* SendOption( 
   Command command,
   OptionCode code
) 
public:
array<byte>^ SendOption( 
   Command command,
   OptionCode code
) 

Parameters

command
The command to send with the option.
code
The option to negotiate.
Remarks

Option negotiation typically occurs automatically by the Telnet component. Using this method will disable the automatic negotiation. Once disabled, all options must be negotiated manually.

To manually negotiate options:

  1. Clear both ClientOptions and ServerOptions.
  2. Use SendOption from within the CommandReceived event in response to commands from the server.

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