SubOption Event

Fired when a Telnet SubOption command comes from the Telnet server.

Syntax

public event OnSubOptionHandler OnSubOption;

public delegate void OnSubOptionHandler(object sender, TelnetSubOptionEventArgs e);

public class TelnetSubOptionEventArgs : EventArgs {
  public string SubOption { get; }
public byte[] SubOptionB { get; } }
Public Event OnSubOption As OnSubOptionHandler

Public Delegate Sub OnSubOptionHandler(sender As Object, e As TelnetSubOptionEventArgs)

Public Class TelnetSubOptionEventArgs Inherits EventArgs
  Public ReadOnly Property SubOption As String
Public ReadOnly Property SubOptionB As Byte() End Class

Remarks

The SubOption parameter contains the suboption data as sent by the other end. The enclosing suboption command codes are stripped away.

For a list of valid Telnet suboptions and their descriptions please look at the Telnet RFCs.

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