Applied Informatics Remoting NG

Remoting NG Limitations

Contents

Limitations

Following is a list of limitations of Remoting and the Remoting code generator. When designing and building remote services with Remoting, knowing the limitations of Remoting is recommended to avoid troubles later on.

Example 1

bool method(Poco::SharedPtr<int> pValue);
    // Although changes to the variable pointed to by pValue would be visible 
    // to a local caller, the changed value is not serialized back to a remote caller.

bool method(Poco::SharedPtr<int>& pValue);
    // Non-const reference to Poco::SharedPtr: the changed value for the variable 
    // pointed to by pValue will be sent back to the remote caller.

Example 2

The following method declaration will lead to bad code being generated by RemoteGen:

void method(struct MyStruct& s);

To work around this issue, simply omit the (superfluous) struct keyword:

void method(MyStruct& s);