IP*Works! S/SNMP V9 - Online Help
IP*Works! S/SNMP V9
Questions / Feedback?

PacketTrace Event

Fired for every packet sent or received.

Syntax

[VB.NET]
Public Event OnPacketTrace As OnPacketTraceHandler
[C#]
public event OnPacketTraceHandler OnPacketTrace;

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

class SnmptrapmgrPacketTraceEventArgs : EventArgs {
  string Packet {get;}  byte[] PacketB {get;}
  int Direction {get;}
  string PacketAddress {get;}
  int PacketPort {get;}
}

Remarks

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

Packet contains the full contents of the UDP 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) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0