4#include <boost/asio.hpp>
12#include "crow/logging.h"
17 namespace asio = boost::asio;
18 using error_code = boost::system::error_code;
20 using error_code = asio::error_code;
22 using tcp = asio::ip::tcp;
33 inline void apply_tcp_socket_options(tcp::socket& socket,
const tcp_socket_options& options)
36 socket.set_option(tcp::no_delay(options.no_delay), ec);
39 CROW_LOG_WARNING <<
"Failed to set TCP_NODELAY: " << ec.message();
43 template<
typename Socket>
44 inline void apply_tcp_socket_options(Socket&,
const tcp_socket_options&)
46 CROW_LOG_WARNING <<
"This socket type does not support set TCP_NODELAY option";
The main namespace of the library. In this namespace is defined the most important classes and functi...
Definition tcp_socket_options.h:29