CIGI API Version 2.7.1 
CIGI API : Users' Guide
Using the API : Incoming Messages

Incoming Messages

Incoming messages are received by the application and contained in a buffer that the application creates. As specified by the interface, the first packet in the incoming message is a CIGI_START_OF_FRAME packet for messages received by hosts, and a CIGI_IG_CONTROL packet for messages received by an IG. The application passes a reference to the incoming buffer to the API by calling the CigiSetIncomingMsgBuffer() function.

As a general rule, the application should call CigiSetIncomingMsgBuffer() as soon as the message buffer is received, since the API uses it to synchronize the frame counter for the outgoing message.

int CigiSetIncomingMsgBuffer( const int sessionid, const unsigned char *buffer, const int size );

The sessionid argument is the ID returned by the CigiCreateSession() function. The buffer argument is the starting address of the incoming buffer, and the size argument should be set to the actual number of bytes received.

SourceForge LogoBoeing
******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********