#include <server.h>
Public Member Functions | |
type::buffer | execute (type::buffer buffer) |
template<typename TFunc > | |
void | handle (std::string name, TFunc func) |
template<typename TFunc > | |
void | handle (type::id id, TFunc func) |
Private Types | |
using | deserializer_type = typename packer_type::deserializer_type |
using | handler_type = std::function< void(deserializer_type &, serializer_type &)> |
using | handlers_type = std::map< type::id, handler_type > |
using | packer_type = TPacker |
using | serializer_type = typename packer_type::serializer_type |
Static Private Member Functions | |
template<typename TFunc , typename TArgs > | |
static std::enable_if_t<!is_same_v< std::decay_t< decltype(invoke_hpp::apply(std::declval< TFunc >), std::declval< TArgs >))) >, void >, void > | apply (TFunc func, TArgs args, serializer_type &serializer) |
template<typename TFunc , typename TArgs > | |
static std::enable_if_t< is_same_v< std::decay_t< decltype(invoke_hpp::apply(std::declval< TFunc >), std::declval< TArgs >))) >, void >, void > | apply (TFunc func, TArgs args, serializer_type &serializer) |
Private Attributes | |
handlers_type | handlers_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
private |