Server Meshing
Loading...
Searching...
No Matches
MessageDispatcher Class Reference

#include <MessageDispatcher.hpp>

Collaboration diagram for MessageDispatcher:

Public Member Functions

template<typename T>
void RegisterHandler (std::function< void(const T &, const std::optional< DispatchContext > &)> aHandler)
void Dispatch (const AnyNetworkPayload &aPayload, const std::optional< DispatchContext > aContext)

Member Function Documentation

◆ Dispatch()

void MessageDispatcher::Dispatch ( const AnyNetworkPayload & aPayload,
const std::optional< DispatchContext > aContext )
inline

◆ RegisterHandler()

template<typename T>
void MessageDispatcher::RegisterHandler ( std::function< void(const T &, const std::optional< DispatchContext > &)> aHandler)
inline