RESTinio
|
An adapter for setting acceptor options before running server. More...
#include <settings.hpp>
Public Member Functions | |
socket_options_t (asio_ns::basic_socket< asio_ns::ip::tcp > &socket) | |
template<typename Option > | |
void | set_option (const Option &option) |
API for setting/getting options. More... | |
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::basic_socket< asio_ns::ip::tcp > & | m_socket |
A reference on the most base class with interface of setting options. More... | |
An adapter for setting acceptor options before running server.
Class hides a socket 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 socket.
Definition at line 248 of file settings.hpp.
|
inline |
socket | A reference on the most base class with interface of setting options. |
Definition at line 251 of file settings.hpp.
|
inline |
Definition at line 275 of file settings.hpp.
|
inline |
Definition at line 282 of file settings.hpp.
|
inline |
API for setting/getting options.
Definition at line 261 of file settings.hpp.
|
inline |
Definition at line 268 of file settings.hpp.
|
private |
A reference on the most base class with interface of setting options.
Definition at line 290 of file settings.hpp.