Skip to content
SocketSetNonBlocking

SocketSetNonBlocking

Description

Toggle non-blocking mode on a socket fd.

Success

Returns true. The fd is in the requested mode.

Failure

Returns false. The fd is unchanged; the failing syscall is logged.

Usage example (Cross-references)

Usage examples (Cross-references)
    // ---------------------------------------------------------------------------
    
    bool SocketSetNonBlocking(SockFd fd, bool nonblock) {
        return plat_set_nonblocking(fd, nonblock);
    }
Last updated on