これはコールバックとして登録できる関数であり、あるノードから別のノードにメッセージが伝搬されるたびに呼び出されます。 これは、ユーザー出口の状態がアクティブの場合、コールバックが登録された実行グループ内で伝搬されるメッセージごとに呼び出されます。コールバックを登録するには、この関数へのポインターを cciRegisterUserExit に渡される CCI_UE_VFT 構造の iFpPropagatedMessageCallback フィールドに指定します。
typedef void (*cciPropagatedMessageCallback)( CciDataContext* userContext, CciMessage* message, CciMessage* localEnvironment, CciMessage* exceptionList, CciMessage* environment, CciConnection* connection);
void myPropagatedMessageCallback( CciMessage* message, CciMessage* localEnvironment, CciMessage* exceptionList, CciMessage* environment, CciConnection* connection){ int rc = CCI_SUCCESS; CciNode* targetNode = cciGetTargetNode(amp rc, connection); CciChar targetNodeName [initialStringBufferLength]; targetNodeNameLength = cciGetNodeName(amp rc, targetNode, targetNodeName, initialStringBufferLength); /*you should now check the rc for unexpected values*/ /*if rc is CCI_BUFFER_TOO_SMALL then you should resize and retry*/ }