In the RPC protocol how does the OS know where the code for
In the RPC protocol, how does the OS know where the code for the actual remote procedure resides?
Solution
Once program statements that use Remote Procedure Call framework are compiled into an executable program, a stub is included in the compiled code that proceeds as the representative of the remote procedure code. After the program is run and the procedure call is issued, the stub accepts the request and forwards it to a client runtime program in the local computer. The client runtime program has the knowledge of how to handle with the remote computer and server application and sends the message across the network that requests the remote procedure. Likewise, the server includes a runtime program and stub that interface with the remote procedure itself. Response-request protocols are returned the similar method.