DatagramBasedIF.conditionWait

Waits for up to @timeout microseconds for condition to become true on @datagram_based. If the condition is met, %TRUE is returned.

If @cancellable is cancelled before the condition is met, or if @timeout is reached before the condition is met, then %FALSE is returned and @error is set appropriately (%G_IO_ERROR_CANCELLED or %G_IO_ERROR_TIMED_OUT).

interface DatagramBasedIF
bool
conditionWait

Parameters

condition GIOCondition

a #GIOCondition mask to wait for

timeout long

the maximum time (in microseconds) to wait, 0 to not block, or -1 to block indefinitely

cancellable Cancellable

a #GCancellable

Return Value

Type: bool

%TRUE if the condition was met, %FALSE otherwise

Throws

GException on failure.

Meta

Since

2.48