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

Processing Incoming Messages

The Event Method

The first method is referred to as "Event" processing. When a packet is received the Incoming Message Object determines which CIGI Class Library object unpacks the data and then determines which "Event" processing object is called. Each "Event" processor is based on the CigiBaseEventProcessor base class and must have an OnPacketReceived method that actually processes the packet for which it is written and registered.

Example: Registering an Event Processor
IncomingMessage.RegisterEventProcessor( Packet_ID, (CigiBaseEventProcessor *)&Specific_pacekt_event_processing_object); // (such as) IncomingMessage.RegisterEventProcessor( CIGI_SOF_PACKET_ID_V3, (CigiBaseEventProcessor *)&Pr_SOF);
SourceForge LogoBoeing
******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********