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 (%G_IO_ERROR_CANCELLED or %G_IO_ERROR_TIMED_OUT).

See also g_socket_condition_timed_wait().

class Socket
bool
conditionWait

Parameters

condition GIOCondition

a #GIOCondition mask to wait for

cancellable Cancellable

a #GCancellable, or %NULL

Return Value

Type: bool

%TRUE if the condition was met, %FALSE otherwise

Throws

GException on failure.

Meta

Since

2.22