CreateRmiCallee()

The free function CreateRmiCallee<I>() creates a skeleton which is bound to the given MultiplexedMsgConnection such that incoming messages of interface I are forwarded onto the 'receiver' object which implements interface I.


template <typename I>
void CreateRmiCallee(MultiplexedMsgConnection* c, ptr<I> receiver);

In more detail this function 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 CreateRmiCaller() in order to set up their side of the connection.

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