PreviousNext

Clients Manipulate Objects Maintained on Servers

The following figure simplifies the relationship between an object-oriented application and a remote procedure call.


Distributed Objects and a Remote Procedure Call

A client first obtains an object reference to the remote object (manager object). An object reference is in the client's address space to act as a proxy for the remote object in the server's address space. In face, an object reference is an instance of the client's proxy class.

When a member function is called, the function in the client stub executes to handle the RPC. The stub of the server managing the object receives the RPC and dispatches the call to the appropriate manager object code and its member function implementation. The actual object is an instance of the manager class.