Requesting a method call
(class ServerConnection)
- Remote methods can be invoked concurrently by multiple threads.
- The remote invocation begins with the calling of the stub.
- The stub executes the method
startRemoteCall
which:
- waits until the server connection be free (method
take
).
- locks the server connection.
- sends the wire representation of the object through the socket.
- sends an indentifier of the invoked method.
- The stub sends the parameters and invokes
waitRemoteRet...
to flush the socket and waits for a returned value.
- unlocks the server connection.
- 8 -