boost::corosio::tcp_socket::set_linger
Set the SO_LINGER option.
Synopsis
Declared in <boost/corosio/tcp_socket.hpp>
void
set_linger(
bool enabled,
int timeout);
Exceptions
Name |
Thrown on |
|
if the socket is not open. |
|
on failure. |
Parameters
| Name | Description |
|---|---|
enabled |
If |
timeout |
The linger timeout in seconds (only used if enabled). |
Created with MrDocs