on_data_in Event

Fired when new ICMP messages come in.

Syntax

class ICMPPortDataInEventParams(object):
  @property
  def message_type() -> int: ...
  @property
  def message_sub_type() -> int: ...
  @property
  def message_data() -> bytes: ...
  @property
  def checksum() -> int: ...
  @property
  def source_address() -> str: ...

# In class ICMPPort:
@property
def on_data_in() -> Callable[[ICMPPortDataInEventParams], None]: ...
@on_data_in.setter
def on_data_in(event_hook: Callable[[ICMPPortDataInEventParams], None]) -> None: ...

Remarks

The MessageType parameter shows the type of the ICMP messages and MessageSubType its subtype.

The MessageData parameter contains the message data.

The Checksum parameter is True or False depending on the ICMP checksum check on the message.

Note that events are not re-entrant. Performing time consuming operations within this event will prevent it from firing again in a timely manner and may impact overall performance.

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