Packet Sniffer SDK DLL Edition

HNPacket :: Properties :: PktGetPacketSize

 Previous Next

Returns the actual size of the packet received by PSSDK internal driver.

Syntax:

DWORD_PTR __stdcall PktGetPacketSize(HANDLE hPkt);

Return values:

If the function succeeds the return value will be the actual size of the packet received by PSSDK internal driver, otherwise it will be 0.

Parameters:

hPkt

[in] HNPacket object handle.

Description:

Use PktGetPacketSize to get the real value of a received packet size. This value can be used for extra traffic processing calculation, for the size of the data received by the application and by the driver can differ, for instance, because of the value defined by BPF filter (see BPF instructions).

See also:IncPacketSize, PktSetPacketSize, AdpSyncSendEx, AdpAsyncSendEx, BPF instructions