5 #ifndef PACKIO_MSGPACK_RPC_MSGPACK_RPC_H
6 #define PACKIO_MSGPACK_RPC_MSGPACK_RPC_H
11 #include "../client.h"
12 #include "../server.h"
18 namespace msgpack_rpc {
24 template <
template <
class...>
class Map = default_map,
typename Lockable = default_mutex>
28 template <
typename Socket,
template <
class...>
class Map = default_map>
32 template <
typename Socket,
template <
class...>
class Map = default_map>
35 return std::make_shared<client<Socket, Map>>(std::forward<Socket>(socket));
39 template <
typename Acceptor,
typename Dispatcher = dispatcher<>>
43 template <
typename Acceptor,
typename Dispatcher = dispatcher<>>
46 return std::make_shared<server<Acceptor, Dispatcher>>(
47 std::forward<Acceptor>(acceptor));
The client class.
Definition: client.h:34
The server class.
Definition: server.h:28
auto make_client(Socket &&socket)
The make_client function for msgpack-RPC.
Definition: msgpack_rpc.h:33
auto make_server(Acceptor &&acceptor)
The make_server function for msgpack-RPC.
Definition: msgpack_rpc.h:44
completion_handler< rpc > completion_handler
The completion_handler for msgpack-RPC.
Definition: msgpack_rpc.h:21
dispatcher< rpc, Map, Lockable > dispatcher
The dispatcher for msgpack-RPC.
Definition: msgpack_rpc.h:25
The packio namespace.
Definition: arg.h:14