DelegateMQ
Loading...
Searching...
No Matches
Dispatcher Class Reference

Dispatcher sends data to the transport for transmission to the endpoint. More...

#include <Dispatcher.h>

Inheritance diagram for Dispatcher:
dmq::IDispatcher

Public Member Functions

 Dispatcher ()=default
 
 ~Dispatcher ()
 
void SetTransport (ITransport *transport)
 
virtual int Dispatch (std::ostream &os, dmq::DelegateRemoteId id)
 
- Public Member Functions inherited from dmq::IDispatcher

Detailed Description

Dispatcher sends data to the transport for transmission to the endpoint.

Constructor & Destructor Documentation

◆ Dispatcher()

Dispatcher::Dispatcher ( )
default

◆ ~Dispatcher()

Dispatcher::~Dispatcher ( )
inline

Member Function Documentation

◆ Dispatch()

virtual int Dispatcher::Dispatch ( std::ostream & os,
dmq::DelegateRemoteId id )
inlinevirtual

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.

Implements dmq::IDispatcher.

◆ SetTransport()

void Dispatcher::SetTransport ( ITransport * transport)
inline

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