[#BIO_set_tcp_ndelay]
= BIO&lowbar;set&lowbar;tcp&lowbar;ndelay
:mrdocs:

Enable or disable TCP&lowbar;NODELAY on a socket&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;set&lowbar;tcp&lowbar;ndelay(
    int sock,
    int turn&lowbar;on);
----

== Return Value

0 on success, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sock*
| Socket file descriptor&period;
| *turn&lowbar;on*
| Non&hyphen;zero to disable Nagle coalescing (TCP&lowbar;NODELAY on), or 0 to clear it&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
