boost::corosio::tcp_socket::set_no_delay

Enable or disable TCP_NODELAY (disable Nagle's algorithm).

Synopsis

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

std::logic_error

if the socket is not open.

std::system_error

on failure.

Parameters

Name Description

value

true to disable Nagle's algorithm (enable no‐delay).

Created with MrDocs