MessageDispatcher

class kanzi::connect::MessageDispatcher

A class that abstracts the destination and delivery method for a network message.

Subclassed by ClientRemoteServiceHost, P2PClient::NetworkListenerRegistration

Public Functions

MessageDispatcher()

Constructor.

~MessageDispatcher()

Destructor.

void dispatch(const MessagePackage &message) = 0

Dispatches this message to its destination.

Parameters
  • message: Message to dispatch.

bool getParameter(size_t, size_t&)

Allows to retrieve a dispatcher specific parameter, mostly for internal use.

Return

If parameter is successfully retrieved, true, otherwise false.

Parameters
  • id: Id of the parameter.

  • param: receives the output value for the parameter.