Boost C++ Libraries: Ticket #8867: Provide socket options for TCP keepalive configuring https://svn.boost.org/trac10/ticket/8867 <p> Please, provide socket options in asio::ip::tcp to configure TCP keepalive behavior, like described in section 4.2 <a class="ext-link" href="http://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/"><span class="icon">​</span>here</a>. E.g. the following typedefs will suffice: </p> <pre class="wiki">typedef boost::asio::detail::socket_option::integer&lt; SOL_TCP, TCP_KEEPIDLE &gt; keepalive_idle_time; typedef boost::asio::detail::socket_option::integer&lt; SOL_TCP, TCP_KEEPINTVL &gt; keepalive_interval; typedef boost::asio::detail::socket_option::integer&lt; SOL_TCP, TCP_KEEPCNT &gt; keepalive_probes; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8867 Trac 1.4.3