PowerTCP Emulation for .NET CF
SendOption Method
See Also  Send comments on this topic.
Dart.Emulation Namespace > Telnet Class : SendOption Method




command
The command to send with the option.
code
The option to negotiate.
Sends a Telnet option to the server.

Syntax

Visual Basic (Declaration) 
Public Function SendOption( _
   ByVal command As Command, _
   ByVal code As OptionCode _
) As Byte()
Visual Basic (Usage)Copy Code
Dim instance As Telnet
Dim command As Command
Dim code As OptionCode
Dim value() As Byte
 
value = instance.SendOption(command, code)
C# 
public byte[] SendOption( 
   Command command,
   OptionCode code
)
Managed Extensions for C++ 
public: byte[]* SendOption( 
   Command command,
   OptionCode code
) 
C++/CLI 
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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.