Packet Sniffer SDK DLL Edition

HNQueue

 Previous Next

HNQueue component is intended for buffering and synchronized multithreaded packets processing. The basic element of the queue is the HNPacket object.

The queue consists of two categories of elements:

  • Free - empty HNPacket objects, free for using in packets processing;
  • Full - HNPacket objects, awaiting for processing.

So, the queue contains two synchronyzed lists, and while HNQueue works the HNPacket objects from one list are moved to another one:

HNQueue component can interchange with HNAdapter component by using ReceiveQueue property. This way you can achieve the traffic processing with very high performance because HNAdapter component uses queue items directly, without additional copying of them.




Properties:

Methods:

Events: