PacketTrace Event
Fired for every packet sent or received.
Syntax
typedef struct { String Packet; DynamicArray<Byte> PacketB; int Direction; String PacketAddress; int PacketPort; } TipnSNMPTCPAgentPacketTraceEventParams; typedef void __fastcall (__closure *TipnSNMPTCPAgentPacketTraceEvent)(System::TObject* Sender, TipnSNMPTCPAgentPacketTraceEventParams *e); __property TipnSNMPTCPAgentPacketTraceEvent OnPacketTrace = { read=FOnPacketTrace, write=FOnPacketTrace };
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.