CCL Version 3.3.1 
CIGI Class Library : Users' Guide
Processing Incoming Messages : Callback Method

Processing Incoming Messages

The Callback Method

The third method is referred to as "Callback" processing. When a packet is received the Incoming Message Object determines which CIGI Class Library object unpacks the data and then determines which "Callback" processing routine is called. The call back is a routine that has the form

void name(CigiBasePacket *Packet)

Each routine processes the packet for which it is written and registered.

Example: Registering a Callback Processor
IncomingMessage.RegisterCallBack( Packet_ID, (CigiCBProcessor)&Specific_packet_callback_processing_routine); // (such as) IncomingMessage.RegisterCallBack( CIGI_SOF_PACKET_ID_V3, (CigiCBProcessor)&CB_SOF);
SourceForge LogoBoeing
******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********