DataIn Event

Fired when new ICMP messages come in.

Syntax

public event OnDataInHandler OnDataIn;

public delegate void OnDataInHandler(object sender, IcmpportDataInEventArgs e);

public class IcmpportDataInEventArgs : EventArgs {
  public int MessageType { get; }
  public int MessageSubType { get; }
  public string MessageData { get; }
public byte[] MessageDataB { get; } public int Checksum { get; } public string SourceAddress { get; } }
Public Event OnDataIn As OnDataInHandler

Public Delegate Sub OnDataInHandler(sender As Object, e As IcmpportDataInEventArgs)

Public Class IcmpportDataInEventArgs Inherits EventArgs
  Public ReadOnly Property MessageType As Integer
  Public ReadOnly Property MessageSubType As Integer
  Public ReadOnly Property MessageData As String
Public ReadOnly Property MessageDataB As Byte() Public ReadOnly Property Checksum As Integer Public ReadOnly Property SourceAddress As String End Class

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