Packet Sniffer SDK DLL Edition

HNFileAdapter :: Properties :: FAdpSetSizeLimit

 Previous Next

Set CAP size limit for data recording operations.

Syntax:

DWORD __stdcall FAdpSetSizeLimit(HANDLE hFAdp, DWORD SizeLimit);

Parameters:

hFAdp

[in] HNFileAdapter object handle.

SizeLimit

[out] Ограничение на размер CAP файла для операции записи данных в CAP файл.

Return values:

If the function succeeds the return value will be the SizeLimit parameter value.

Description:

Use FAdpSetSizeLimit 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.

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