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. | |
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. |
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 247 of file settings.hpp.
|
inline |
socket | A reference on the most base class with interface of setting options. |
Definition at line 250 of file settings.hpp.
|
inline |
Definition at line 274 of file settings.hpp.
|
inline |
Definition at line 281 of file settings.hpp.
|
inline |
API for setting/getting options.
Definition at line 260 of file settings.hpp.
|
inline |
Definition at line 267 of file settings.hpp.
|
private |
A reference on the most base class with interface of setting options.
Definition at line 289 of file settings.hpp.