Software Ver.2.0 Owner's manual

Classes of the C++ Interface Methods of the IGCPacket Class
2-60 CATC IBTrainer InfiniBand Exerciser API Reference
Methods of the IGCPacket Class
The class
IGCPacket
is not for direct use by the programmer. The classes
IGCIBAPacket
,
IGCRawIPPacket
,
IGCRawPacke
t,
IGCMADPacket
and
IGCSMPPacket are derived from this class and provide the user
interface to programming the packets. The constructor is protected. Use
constructors from derived classes for construction and
DeletePacket()
for
deletion. (While the use of destructors from derived classes is possible,
it is recommended to use
DeletePacket()
instead.)
Figure 7 IGCPacket Class
IGCMADPacket
I GCRa w I PP a c k e tI GCRa w Pa c k e t IGCIBAPacket
IGCPacket
The following table lists the characteristic members of the
IGCPacket
class:
void
AppendBuffer ( OUT IGCBuffer & buffer ) const;
void AppendPayloadBuffer ( OUT IGCBuffer & buffer ) const;
IGCPacket * Clone ( void ) const;
void DeletePacket ( void );
virtual ig_int16 GetActualLength ( void ) const;
virtual ig_int32 GetICRC (void) const;
Characteristic Members