boost::corosio::tcp_socket::set_keep_alive
Enable or disable SO_KEEPALIVE.
Synopsis
Declared in <boost/corosio/tcp_socket.hpp>
void
set_keep_alive(bool value);
Description
When enabled, the socket will periodically send keepalive probes to detect if the peer is still reachable.
Exceptions
Name |
Thrown on |
|
if the socket is not open. |
|
on failure. |
Parameters
| Name | Description |
|---|---|
value |
|
Created with MrDocs