IPWorks SNMP 2020 .NET Edition

Questions / Feedback?

PacketTrace Event

Fired for every packet sent or received.

Syntax

public event OnPacketTraceHandler OnPacketTrace;

public delegate void OnPacketTraceHandler(object sender, SnmpagentPacketTraceEventArgs e);

public class SnmpagentPacketTraceEventArgs : EventArgs {
  public string Packet { get; }
public byte[] PacketB { get; } public int Direction { get; } public string PacketAddress { get; } public int PacketPort { get; } }
Public Event OnPacketTrace As OnPacketTraceHandler

Public Delegate Sub OnPacketTraceHandler(sender As Object, e As SnmpagentPacketTraceEventArgs)

Public Class SnmpagentPacketTraceEventArgs Inherits EventArgs
  Public ReadOnly Property Packet As String
Public ReadOnly Property PacketB As Byte() Public ReadOnly Property Direction As Integer Public ReadOnly Property PacketAddress As String Public ReadOnly Property PacketPort As Integer End Class

Remarks

The PacketTrace event shows all the packets sent or received by the component.

Packet contains the full contents of the datagram.

Direction shows the direction of the packet: 1 for incoming packets, and 2 for outgoing packets.

In the case of an incoming packet, PacketAddress and PacketPort identify the source of the packet.

In the case of an outgoing packet, PacketAddress and PacketPort identify the destination of the packet.

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