The server class.
More...
#include <packio/server.h>
template<typename Rpc, typename Acceptor, typename Dispatcher = dispatcher<Rpc>>
class packio::server< Rpc, Acceptor, Dispatcher >
The server class.
- Template Parameters
-
Rpc | RPC protocol implementation |
Acceptor | Acceptor type to use for this server |
Dispatcher | Dispatcher used to store and dispatch procedures. See dispatcher |
◆ server()
template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>>
The constructor.
- Parameters
-
acceptor | The acceptor that the server will use |
dispatcher | A shared pointer to the dispatcher that the server will use |
◆ async_serve()
template<typename Rpc , typename Acceptor , typename Dispatcher = dispatcher<Rpc>>
template<typename ServeHandler PACKIO_DEFAULT_COMPLETION_TOKEN_TYPE>
auto packio::server< Rpc, Acceptor, Dispatcher >::async_serve |
( |
ServeHandler && |
handler = typename net::default_completion_token< executor_type >::type() | ) |
|
|
inline |
Accept one connection and initialize a session for it.
- Parameters
-
The documentation for this class was generated from the following file: