Home Help Center

in data with out parameters?

ctennisctennis Member Caleb TennisOrganization: AEIProject: Project GINA ✭✭✭
If I have an out parameter, is it strickly output only or does data get sent to the remote side as well?

For example:

struct Parameter {
short a1;
short a2;

interface SomeIFace {
int someMethod(out Parameter param);

Now, if on my proxy side I do this:

SomeIFacePrx proxy;

Parameter param;
param.a1 = 10;


Will the values within the param struct be sent to the remote side, or is it solely for taking output values back to the proxy? I'm not seeing data being sent, so I want to make sure this is a design feature vs. some bug in my code.

If I do want to send partial data from the structure and return data from the structure as well, I suppose I just need to support a second argument?


  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Caleb,

    Out parameters are purely out -- no in-data is sent.

    Best regards,
Sign In or Register to comment.