DelegateMQ
|
Delegate interface class to dispatch serialized function argument data to a remote destination. Implemented by the application if using remote delegates. More...
#include <IDispatcher.h>
Public Member Functions | |
virtual int | Dispatch (std::ostream &os, DelegateRemoteId id)=0 |
Delegate interface class to dispatch serialized function argument data to a remote destination. Implemented by the application if using remote delegates.
Incoming data from the remote must the IDispatcher::Dispatch()
to invoke the target function using argument data. The argument data is serialized for transport using a concrete class implementing the ISerialzer
interface allowing any data argument serialization method is supported.
IRemoteInvoker::Invoke()
when the dispatched message is received.
|
pure virtual |
Dispatch a stream of bytes to a remote system. The implementer is responsible for sending the bytes over a communication transport (UDP, TCP, shared memory, serial, ...).
[in] | os | An outgoing stream to send to the remote destination. |
[in] | id | The unique delegate identifier shared between sender and receiver. |
Implemented in Dispatcher.