Packet Sniffer SDK DLL Edition

HNPacket :: Methods :: PktSetId

 Previous Next

Sets the packet number.

Syntax:

DWORD __stdcall PktSetId(HANDLE hPkt, DWORD LowPart, DWORD HiPart);

Parameters:

hPkt

[in] HNPacket object handle.

LowPart

[in] Low 32 bits of the 64-bit packet number.

HiPart

[in] High 32 bits of the 64-bit packet number.

Return values:

This function returns LowPart value.

Description:

Use PktSetId to set 64-bit packet number.

The packet number is necessary to set correct sequence of the packets receiving for further analysis, because TimeStamp value is divisible by 100 nanoseconds (or 0.8 seconds in the Windows 9x systems), and several packets may be received in this time interval.

Using of PktSetId makes sense only if you create your own packets and send them for further analysis.

See also:HNPacket, PktGetId, PktGetTimeStamp