Home Help Center

Unmarshalling multiple out parameters with dynamic invocation

myrosiamyrosia Member Myroslava DzikovskaOrganization: University of EdinburghProject: tutorial dialogue system ✭✭
This is probably basic, but I cannot figure out the answer from the documentation. I am doing dynamic ice invocation to interface with a language (LISP) for which I don't have full ICE mappings.

If I have this slice declaration
string printStringCount2(string in1, string in2, out string strout);

I call
proxy->ice_invoke("pringStringCount2", Ice::Normal, inParams, outParams);

I now need to read 2 return values from outParams stream, one for strout and one for the string returned by the function. Which order will they be in?

Thanks,

Myrosia

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    Use the protocol docs as your guide here. For a successful reply message, the results are encoded as the out parameters (in order of declaration), followed by the return value (if non-void).

    Regards,
    Mark
  • myrosiamyrosia Member Myroslava DzikovskaOrganization: University of EdinburghProject: tutorial dialogue system ✭✭
    OK, thanks, that is what I needed.
Sign In or Register to comment.