RESTinio
|
An adapter for setting acceptor options before running server. More...
#include <settings.hpp>
Public Member Functions | |
acceptor_options_t (asio_ns::ip::tcp::acceptor &acceptor) | |
template<typename Option > | |
void | set_option (const Option &option) |
API for setting/getting options. | |
template<typename Option > | |
void | set_option (const Option &option, asio_ns::error_code &ec) |
template<typename Option > | |
void | get_option (Option &option) |
template<typename Option > | |
void | get_option (Option &option, asio_ns::error_code &ec) |
Private Attributes | |
asio_ns::ip::tcp::acceptor & | m_acceptor |
An adapter for setting acceptor options before running server.
Class hides an acceptor object and opens only set/get options API. It is used as an argument for a user defined function-object that can set custom options for acceptor.
Definition at line 184 of file settings.hpp.
|
inline |
Definition at line 187 of file settings.hpp.
Definition at line 209 of file settings.hpp.
Definition at line 216 of file settings.hpp.
API for setting/getting options.
Definition at line 195 of file settings.hpp.
|
inline |
Definition at line 202 of file settings.hpp.
|
private |
Definition at line 223 of file settings.hpp.