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
-
inline
MessageDispatcher
()¶ Constructor.
-
inline virtual
~MessageDispatcher
()¶ Destructor.
-
virtual void
dispatch
(const MessagePackage &message) = 0¶ Dispatches this message to its destination.
- Parameters
message – Message to dispatch.
-
inline virtual bool
getParameter
(size_t, size_t&)¶ Allows to retrieve a dispatcher specific parameter, mostly for internal use.
- Parameters
id – Id of the parameter.
param – receives the output value for the parameter.
- Returns
If parameter is successfully retrieved, true, otherwise false.
-
inline