diff options
author | Howard Chu <hyc@symas.com> | 2016-01-01 02:47:48 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-01-02 03:10:41 +0000 |
commit | ee6f2cb71f4053b58be1ea15bcbe099062bbbd7c (patch) | |
tree | 9f335533f943b46b09ed6728e66f343906a309ee | |
parent | Get rid of doubly-defined NDEBUG (diff) | |
download | monero-ee6f2cb71f4053b58be1ea15bcbe099062bbbd7c.tar.xz |
IP_TOS not supported before Windows7
-rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 51c6f3501..5bf65d7fd 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -160,13 +160,16 @@ PRAGMA_WARNING_DISABLE_VS(4355) boost::bind(&connection<t_protocol_handler>::handle_read, self, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred))); - +#if !defined(_WIN32) || !defined(__i686) + // not supported before Windows7, too lazy for runtime check + // Just exclude for 32bit windows builds //set ToS flag int tos = get_tos_flag(); boost::asio::detail::socket_option::integer< IPPROTO_IP, IP_TOS > optionTos( tos ); socket_.set_option( optionTos ); //_dbg1("Set ToS flag to " << tos); +#endif boost::asio::ip::tcp::no_delay noDelayOption(false); socket_.set_option(noDelayOption); |