Packet Sniffer SDK DLL Edition

HNFileAdapter :: Properties :: FAdpGetSizeLimit

 Previous Next

Return CAP size limit for data recording operations.

Syntax:

DWORD __stdcall FAdpGetSizeLimit(HANDLE hFAdp);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

Return values:

If the function succeeds the return value is the CAP size limit for data recording operations.

Description:

Use FAdpGetSizeLimit to get the CAP size limit for data recording operations.

This value determines the CAP file size limit for HNFileAdapter object working in AutoMode (see HNFileAdapter.AutoMode [Get/Set]).

If the HNFileAdapter.SizeLimit value is not equal to 0, and then packets have been dumped to a CAP file, then when this file size runs up to HNFileAdapter.SizeLimit value, the file is automatically closed, and OnFileClose event handler is called.

To set CAP file size limit please use FAdpSetSizeLimit function.

See also:HNFileAdapter, FAdpSetSizeLimit, FAdpGetAutoMode, FAdpSetAutoMode, OnFileClose