TApxDataPacket.OnPacket

TApxDataPacket

property OnPacket : TPacketNotifyEvent
TPacketNotifyEvent = procedure(
  Sender : TObject; Data : pointer; Size : Integer) of object;

Defines an event handler that is called when a complete data packet is available.

Data is the actual data in the packet. Size is the size of the packet. The data packet is only available for the duration of the event.