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). Since 2.22

class Socket
int
conditionWait

Parameters

condition GIOCondition

a GIOCondition mask to wait for

cancellable Cancellable

a GCancellable, or NULL. [allow-none]

Return Value

Type: int

TRUE if the condition was met, FALSE otherwise

Throws

GException on failure.

Meta