Packet Sniffer SDK DLL Edition

HNPacket :: Properties :: PktGetMaxPacketSize

 Previous Next

Returns the size of the buffer allocated for packet data.

Syntax:

DWORD __stdcall PktGetMaxPacketSize(HANDLE hPkt);

Parameters:

hPkt

[in] HNPacket object handle.

Return values:

If the function succeeds the return value will be the size of the buffer allocated for packet data, otherwise it will be 0.

Description:

Use PktGetMaxPacketSize to get the size of the buffer allocated for packet data.

On data sending the size of data may not be greater than MaxPacketSize. Also on data receiving IncPacketSize[Get/Set] may not be greater than MaxPacketSize.

See also:HNPacket, PktCreate, PktGetIncPacketSize, PktSetIncPacketSize