Socket.conditionWait

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

If cancellable is cancelled before the condition is met, or if the socket has a timeout set and it is reached before the condition is met, then false is returned and error, if non-null, is set to the appropriate value (gio.types.IOErrorEnum.Cancelled or gio.types.IOErrorEnum.TimedOut).

See also gio.socket.Socket.conditionTimedWait.

Parameters

condition glib.types.IOCondition

a #GIOCondition mask to wait for

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

Return Value

Type: bool

true if the condition was met, false otherwise