Packet Sniffer SDK DLL Edition

HNFileAdapter :: Properties :: FAdpGetMaxPacketSize

 Previous Next

Return maximal size of packet to be dumped to a CAP file (needed for some formats).

Syntax:

DWORD __stdcall FAdpGetMaxPacketSize(HANDLE hFAdp);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

Return values:

If the function succeeds the return value will be the queue packet maximum size, otherwise it will be 0.

Description:

Use FAdpGetMaxPacketSize to get the maximal packet size for current CAP file.

To create a CAP file (see FAdpCreateFile) you should predetermine maximal packet size for packet which will be written to this file. This size value will be stored in CAP file for further off-line processing.

To change HNFileAdapter.MaxPacketSize property please use FAdpSetMaxPacketSize function.

See also:HNFileAdapter, FAdpCreateFile, FAdpSetMaxPacketSize