SomeReturnType SomeServerFunction (SomeParameterTypes parameters) { // Create a message that describes the call. Message callRequest = new Message (); callRequest.put ("SomeServerFunction"); callRequest.putSomeParameterTypes (parameters); // Send the request to the server. callRequest.send (ServerAddress); // Wait for server reponse. Message callResponse = Message.receive (ServerAddress); // Extract return value from server response. SomeReturnType result = callResponse.getSomeReturnType (); return (result); }
What is the function signature ?
How is the server function identified ?
How are the parameters encoded in the message ?
Where does the server address come from ?
What if the communication fails ?