on_sub_option Event

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

Syntax

class TelnetSubOptionEventParams(object):
  @property
  def sub_option() -> bytes: ...

# In class Telnet:
@property
def on_sub_option() -> Callable[[TelnetSubOptionEventParams], None]: ...
@on_sub_option.setter
def on_sub_option(event_hook: Callable[[TelnetSubOptionEventParams], None]) -> None: ...

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 Python Edition - Version 20.0 [Build 8307]