Function

GLibunix_set_fd_nonblocking

Declaration [src]

gboolean
g_unix_set_fd_nonblocking (
  gint fd,
  gboolean nonblock,
  GError** error
)

Description [src]

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.

Available since:2.30

Parameters

fd gint
 

A file descriptor.

nonblock gboolean
 

If TRUE, set the descriptor to be non-blocking.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successful.