Handlepacket, Getgenerator – Teledyne LeCroy Automation API for IBTrainer Software Ver.2.0 User Manual

Page 127

Advertising
background image

Methods of the IGCPacketHandler Class

Classes of the C++ Interface

CATC IBTrainer InfiniBand Exerciser API Reference

2-105

HandlePacket

virtual IGEPacketStatus HandlePacket ( IGCPacket & packet ) = 0;

Called from the generator if the call to CheckPacket() (see above)
returned ACCEPT. No other packet handler is called thereafter for this
packet.

The return value is the same as for CheckPacket. It is ignored in this
release.

packet
The packet to be handled by the packet handler.

CheckPacket

above

GetGenerator

IGCGenerator * GetGenerator (void) { return m_pGenerator; }

Returns a pointer to the generator. This can be used to access PortInfo
or NodeInfo structs if needed.

Pointer to the IGCGenerator object.

None

“IGCNodeInfo Properties” on page 4-6

,

“IGCPortInfo Properties” on

page 4-8

Call

Description

Return Value

Input Parameters

See also

Call

Description

Return Value

Parameters

See also

Advertising