Packet Sniffer SDK DLL Edition

HNFileAdapter Methods

 Previous Next

Please see HNFileAdapter functions short descriptions below:

FAdpCloseFile

Closes the CAP file.

FAdpCreate

Creates an HNFileAdapter object.

FAdpCreateFile

Creates a CAP file.

FAdpDestroy

Destroys an HNFileAdapter object.

FAdpGetAcceptCount

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

FAdpGetNextPacket

Retrieve next packet from CAP file opened for reading.

FAdpGetOpenTime

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

FAdpGetProcessCount

Returns the number of the packets transferred to the application.

FAdpGetRecvCount

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

FAdpGetRejectCount

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

FAdpIsOpened

Shows HNFileAdapter working status.

FAdpOpenFile

Opens the CAP file.

FAdpRewindFile

Repositions the packet pointer to the beginning of a file.

FAdpSyncSend

Write packet to CAP file asynchronously.

FAdpSyncSendEx

Write packet to CAP file synchronously.