Parameter Passing

One of the key concepts that needs to be understood to program with CORBA in C++ is the semantics of parameter passing. With each distributed invocation, the ORB copies parameters from the client and makes them temporarily available to the server. Return values from the server are subsequently copied back to the client address space. A lot of allocation, copying, and deletion is going on in the background. It is essential that you understand how responsibility for memory management is divided up between client, server, and ORB so that you can avoid leaking any of this memory.

This section takes you step-by-step through the semantics of parameter passing. It considers each of the following cases:

  • in parameters

  • inout parameters ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.