One of the most important traffic analysis tasks is dumping captured traffic to a CAP file for
further rebroadcasting and analysis. These tasks (both recording and replaying) may be solved with help
of HNFileAdapter.
HNFileAdapter basic functions are:
- dumping captured traffic to a CAP file in real-time;
- rebroadcasting traffic from a CAP file as a traffic source;
- off-line work with dumped traffic (analysis, modifications, splitting to several new CAP files by
PSSDK filtering mechanisms, and so on).
- providing a developer with the dumped traffic statistics.
HNFileAdapter component interacts immediately with
HNQueue component using
HNFileAdapter.Queue property. Thanks to the cutting down
amount of packets data copying operations, this approach allows to work with CAP files by the most
powerful way.
Assume, you're going to capture traffic from the network adapter and immediately dump it to a
CAP file.
In process of the traffic capture the packets queue elements are used by
HNAdapter component immediately. By redirecting of the packets
flow to the HNFileAdapter component and using of HNQueue,
you can dump captured traffic to a CAP file almost immediately too, and at the same time you can use all
advantages of the asynchronous packets processing provided by HNQueue
component.
 | Current version supports only TCPDUMP/LIBPCAP format of CAP files. |
Properties:
Methods:
Events: