CCL Version 3.3.1 
CIGI Class Library : Users' Guide
User Defined Packets

User Defined Packets

CIGI and the CCL allow for User Defined Packets. To process a User Defined Packet, the user must develop a packet class for the User Defined packet that is derived from the CigiBasePacket class and conforms to the general form of all the other CIGI packet classes. It must have valid Pack and Unpack methods. It also must have accessors for each of the data parameters.

A User Defined Packet object must be created and registered for use by the Incoming Message object as in the following example.

Example: Registering a User Defined Packet
try { // HostSend: If this packet is sent by the host, this is true. If not, this is false. // IGSend: If this packet is sent by teh IG, this is true. If not, this is false. Error = Session.RegisterUserPacket( Pointer_to_the_User_Defined_Packet_object, The_PacketID, HostSend, IGSend); } catch(CigiInvalidUserPacketException UP_Excpt) { if(UP_Excpt.HasMessage()) printf("%s\n",UP_Excpt.what()); }
SourceForge LogoBoeing
******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********