cciGetNodeAttribute 関数は、指定された属性の値を戻します。
CciSize cciGetNodeAttribute (int* returnCode,
CciNode* node,
CciChar* name,
CciChar* value,
CciSize length);
提供されたバッファーの容量が小さかったため、ノード・タイプの値を保持できませんでした。
void myPropagatedMessageCallback(
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciConnection* connection){
int rc = CCI_SUCCESS;
CciNode* sourceNode = cciGetSourceNode(&rc,
connection);
/*you should now check the rc for unexpected values*/
CciChar queueNameAttribute[16];
cciMbsToUcs(&rc,
"queueName",
queueNameAttribute,
16,
BIP_DEF_COMP_CCSID);
/*you should now check the rc for unexpected values*/
CciChar queueName [512];
sourceNodeQueueNameLength = cciGetNodeType(&rc,
sourceNode,
queueName,
512);
/*you should now check the rc for unexpected values*/
/*if rc is CCI_BUFFER_TOO_SMALL, resize and retry*/
/*sourceNodeQueueNameLength will hold the actual or required size */