CreateRmiCaller()

The free function CreateRmiCaller<I>() creates an RmiCaller for rmi interface I which allows for sending messages over the given MultiplexedMsgConnection.


template <typename I>
RmiCaller* CreateRmiCaller(MultiplexedMsgConnection* c);

In more detail it performs the following:

The created IMessageWriter/IMessageReader are concerned with supporting remote method calls on the interface.

It is expected that the peer will call CreateRmiCallee() in order to set up their side of the connection.

Assumes the given MultiplexedMsgConnection has been created but OpenConnection() hasn't been called yet.