CmdBlock ParamList Question [message #100608] |
Fri, 08 June 2007 04:38 |
Eclipse User |
|
|
|
Originally posted by: guyfromindia.gmail.com
Hello, I have a C++ Agent talking to a Java Client
In my Agent, I am sending a CmdBlock that contains a paramList of name-value
pairs...e.g.
>>>>>> CmdBlock* cmd = new CmdBlock();
>>>>>> //Initialize paramList for key value pairs
>>>>>> tptp_list_t* paramList = (tptp_list_t*)tptp_malloc(
>>>>>>sizeof(tptp_list_t));
>>>>>> tptp_list_init(paramList);
>>>>>> ...
>>>>>>//create and add parameters
>>>>>>...
>>>>>> cmd->setIID("org.mycompany.samplestuff");
>>>>>> cmd->setCommandName("log");
>>>>>> cmd->setParamList(paramList);
>>>>>> sendEventNotifications(cmd);
On the Java side, I am getting notified on 'incomingCommand'...
** Question:
** How can I get back the values that I sent in 'paramList' on the Java
side? It will be great if I can see an example implementation..
TIA
Raj
|
|
|
Powered by
FUDForum. Page generated in 0.03238 seconds