TCP File Descriptor Control

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

Onload supports the following options in socket() and accept() calls.

Table 1. Options for socket() and accept()
Option Description
SOCK_NONBLOCK Supported in socket() and accept(). Sets the O_NONBLOCK file status flag on the new open file descriptor saving extra calls to fcntl(2) to achieve the same result.
SOCK_CLOEXEC Supported in accept(). Sets the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.