RGtk2 (version 2.20.31)

gSocketConditionWait: gSocketConditionWait

Description

Waits for condition to become true on socket. When the condition is met, TRUE is returned.

Usage

gSocketConditionWait(object, condition, cancellable = NULL, .errwarn = TRUE)

Arguments

object
condition
a GIOCondition mask to wait for
cancellable
a GCancellable, or NULL
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[logical] TRUE if the condition was met, FALSE otherwise
error
a GError pointer, or NULL

Details

If cancellable is cancelled before the condition is met then FALSE is returned and error, if non-NULL, is set to G_IO_ERROR_CANCELLED. Since 2.22