The memory for the traffic processing is not allocated. This can happen either because of the
insufficient operating system resources or in case of
HNQueue component using (see
HNQueue.AllocItems).
HNERR_OPEN_FILE
CAP file opening error.
HNERR_READ_FILE
File reading error.
HNERR_BAD_FILE_FORMAT
Unknown CAP file format.
HNERR_FORMAT_VER
This version of CAP file is not supported.
HNERR_BAD_MEDIUM_TYPE
The adapter type, in format of which packets was dumped to CAP file, is not supported.
Use OpenFile to open an existing CAP file. If the function succeeds, you can begin to
dump network traffic to this CAP file using HNFileAdapter.Get_NextPacket function.
If HNFileAdapter.Queue property was
set before the network adapter opening, and HNFileAdapter object
Automode was set (see HNFileAdapter.AutoMode), then the traffic will be
processed in the HNFileAdapter internal thread context together with HNQueue
component.
On executing HNFileAdapter.OpenFile function
HNFileAdapter component attempts to close the CAP file which was
opened earlier. So, one instance of HNFileAdapter object can open
only one CAP file.
If you need to open/create several CAP files simultaneously, you may create several
HNFileAdapter objects with appropriate settings.