set_fd_nonblocking


Description:

[ Version ( since = "2.30" ) ]

public bool set_fd_nonblocking (int fd, bool nonblock) throws Error

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

A file descriptor

nonblock

If true, set the descriptor to be non-blocking

Returns:

true if successful


Namespace: GLib.Unix
Package: glib-2.0