Packet Sniffer SDK VCL Edition

HNFileAdapter Methods

 Previous Next

Please see HNFileAdapter functions short descriptions below:

CloseFile

Closes the CAP file.

Constructor

Creates an HNFileAdapter object.

CreateFile

Creates a CAP file.

Destructor

Destroys an HNFileAdapter object.

Get_AcceptCount

Return the number of the packets passed by the user-settable packet filter.

Get_NextPacket

Retrieve next packet from CAP file opened for reading.

Get_OpenTime

Return the timestamp of the first packet stored in a CAP file.

Get_ProcessCount

Returns the number of the packets transferred to the application.

Get_RecvCount

Return the number of packets read from the CAP file and received by BPF filter.

Get_RejectCount

Returns the number of packets rejected by the user-settable packet filter.

IsOpened

Shows HNFileAdapter working status.

OpenFile

Opens the CAP file.

RewindFile

Repositions the packet pointer to the beginning of a file.

SyncSend

Write packet to CAP file synchronously.

SyncSendEx

Write packet to CAP file synchronously.