Packet Sniffer SDK VCL Edition

HNLBAdapter :: Events :: OnUdpPacketReceive

 Previous Next

Fires when an application receives or sends UDP data.

Syntax:

TOnUdpPacketReceive = procedure (Sender : TObject;
                                 ThParam: Pointer;
                                hLBHosts: Pointer;
                               Direction: Integer;
                                     Pid: DWORD;
                                 hPacket: Pointer;
                                   pData: Pointer;
                              DataLength: DWORD) of object;

Parameters:

ThParam

[in] Parameter defined in OnThreadBegin event handler.

hLBHosts

[in] HNLBHosts object handle to which the packet belongs to.

Direction

[in] The direction of the operation (values are defined by HNLBDirection enumeration).

Pid

[in] PID of the process, which has sent or received this packet.

hPacket

[in] HNPacket object handle.

pData

[in] A pointer to the packet data (see also PacketData).

DataLength

[in] Packet size (see also IncPacketSize).

Description:

Use this event handler to make necessary actions at the moment of sending or receiving UDP data by an application. OnUdpPacketReceive event handler is called by HNLBAdapter component when an application sends or receives data (e.g. using Sendto or WSASendTo sockets functions).

See also:HNLBAdapter, HNLBHosts, HNLBDirection, HNPacket, PacketData, IncPacketSize