Methods of the igcpackethandler class – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 125

Advertising
background image

Methods of the IGCPacketHandler Class

Classes of the C++ Interface

CATC IBTrainer InfiniBand Exerciser API Reference

2-103

Methods of the IGCPacketHandler

Class

The class IGCPacketHandler provides the methods for the packet handler
to manage packets within the handler.

You cannot use the class directly, it is purely virtual and has to be
derived. You need to implement versions of the calls CheckPacket() and
HandlePacket()

. The generator uses these methods to check if a

registered packet handler wants to handle a packet (CheckPacket()) and
if so, passes the packet to it for handling (HandlePacket()). You are free
to do whatever is necessary in these two functions.

The following table lists the characteristic members of the
IGCPacketHandler

class:

virtual

~IGCPacketHandler ();

virtual

IGEPacketStatus CheckPacket ( IGCPacket & packet ) = 0;

virtual

IGEPacketStatus HandlePacket ( IGCPacket & packet ) = 0;

IGCGenerator

* GetGenerator ( void ) { return m_pGenerator; }

#include <igpackethandler.h>

Files

Advertising