Will Event

Fired when a Telnet WILL OPTION command comes from the Telnet server.

Syntax

public event OnWillHandler OnWill;

public delegate void OnWillHandler(object sender, TelnetWillEventArgs e);

public class TelnetWillEventArgs : EventArgs {
  public int OptionCode { get; }
}
Public Event OnWill As OnWillHandler

Public Delegate Sub OnWillHandler(sender As Object, e As TelnetWillEventArgs)

Public Class TelnetWillEventArgs Inherits EventArgs
  Public ReadOnly Property OptionCode As Integer
End Class

Remarks

For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:

0 (TRANSMIT-BINARY)Enables or disables binary (8 bit) transmission.
1 (ECHO)Telnet ECHO option. Specifies whether bytes sent should be echoed or not.
3 (SUPPRESS-GO-AHEAD)Used to enable or disable transmission of the Telnet GO_AHEAD command.
24 (TERMINAL-TYPE)Allows or disallows terminal type negotiation.
31 (NAWS)Allows or disallows window size negotiation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 .NET Edition - Version 20.0 [Build 8307]