TCP File Descriptor Control

Onload User Guide (UG1586)

Document ID
Release Date
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.