Fixed compiler error.

This commit is contained in:
gavin.smith@coralbay.tv 2018-12-30 00:33:32 +00:00
commit 4328286e32

View file

@ -406,7 +406,7 @@ namespace SimpleWeb {
#if defined(__linux__) && defined(TCP_FASTOPEN)
const int qlen = 5; // This seems to be the value that is used in other examples.
boost::system::error_code ec;
acceptor->set_option(boost::asio::detail::socket_option::integer<IPPROTO_TCP, TCP_FASTOPEN>(qlen), ec);
acceptor->set_option(asio::detail::socket_option::integer<IPPROTO_TCP, TCP_FASTOPEN>(qlen), ec);
#endif // End Linux
}
acceptor->bind(endpoint);