DelegateMQ
Loading...
Searching...
No Matches
dmq::IDispatcher Class Referenceabstract

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>

Inheritance diagram for dmq::IDispatcher:
Dispatcher

Public Member Functions

virtual int Dispatch (std::ostream &os, DelegateRemoteId id)=0
 

Detailed Description

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.

Postcondition
The receiver calls IRemoteInvoker::Invoke() when the dispatched message is received.

Member Function Documentation

◆ Dispatch()

virtual int dmq::IDispatcher::Dispatch ( std::ostream & os,
DelegateRemoteId id )
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, ...).

Parameters
[in]osAn outgoing stream to send to the remote destination.
[in]idThe unique delegate identifier shared between sender and receiver.

Implemented in Dispatcher.


The documentation for this class was generated from the following file: