Function

GLib-2.0GLibunix_set_fd_nonblockingSince 2.30

  • Control the non-blocking state of the given file descriptor, according to nonblock. On most systems this uses O_NONBLOCK, but on some older ones may use O_NDELAY.

    Parameters

    • fd: number

      A file descriptor

    • nonblock: boolean

      If true, set the descriptor to be non-blocking

    Returns boolean

    true if successful

    2.30