boost::corosio::tcp_socket::set_no_delay
Enable or disable TCP_NODELAY (disable Nagle's algorithm).
Synopsis
Declared in <boost/corosio/tcp_socket.hpp>
void
set_no_delay(bool value);
Description
When enabled, segments are sent as soon as possible even if there is only a small amount of data. This reduces latency at the potential cost of increased network traffic.
Exceptions
Name |
Thrown on |
|
if the socket is not open. |
|
on failure. |
Parameters
| Name | Description |
|---|---|
value |
|
Created with MrDocs