The packio namespace.
More...
|
template<typename Rpc , typename Socket , template< class... > class Map = default_map> |
auto | make_client (Socket &&socket) |
| Create a client from a socket. More...
|
|
template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>> |
auto | make_server (Acceptor &&acceptor) |
| Create a server from an acceptor. More...
|
|
◆ make_client()
template<typename Rpc , typename Socket , template< class... > class Map = default_map>
auto packio::make_client |
( |
Socket && |
socket | ) |
|
Create a client from a socket.
- Template Parameters
-
Rpc | RPC protocol implementation |
Socket | Socket type to use for this client |
Map | Container used to associate call IDs and handlers |
◆ make_server()
template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>>
auto packio::make_server |
( |
Acceptor && |
acceptor | ) |
|
Create a server from an acceptor.
- Template Parameters
-
Rpc | RPC protocol implementation |
Acceptor | Acceptor type to use for this server |
Dispatcher | Dispatcher used to store and dispatch procedures. See dispatcher |