Home > Articles > Networking

  • Print
  • + Share This
From the author of

The Remote Procedure Call Mechanism

In order for an RPC to execute successfully, several steps must take place:

1. The caller program must prepare any input parameters to be passed to the RPC. Note that the caller and the callee may be running completely different hardware, and that certain data types may be represented differently from one machine architecture to the next. Because of this, the caller cannot simply feed raw data to the remote procedure.

2. The calling program must somehow pass its data to the remote host that will execute the RPC. In local procedure calls, the target address is simply a machine address on the local processor. With RPC, the target procedure has a machine address combined with a network address.

3. The RPC receives and operates on any input parameters and passes the result back to the caller.

4. The calling program receives the RPC result and continues execution.

 

  • + Share This
  • 🔖 Save To Your Account