Enable or disable TCP_NODELAY on a socket.

Synopsis

Declared in <openssl/bio.h>

int
BIO_set_tcp_ndelay(
    int sock,
    int turn_on);

Return Value

0 on success, or ‐1 on error.

Parameters

Name

Description

sock

Socket file descriptor.

turn_on

Non‐zero to disable Nagle coalescing (TCP_NODELAY on), or 0 to clear it.

Created with MrDocs