Waits for up to @timeout microseconds for @condition to become true
on @socket. If the condition is met, %TRUE is returned.
If @cancellable is cancelled before the condition is met, or if
@timeout (or the socket's #GSocket:timeout) 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).
If you don't want a timeout, use g_socket_condition_wait().
(Alternatively, you can pass -1 for @timeout.)
Note that although @timeout is in microseconds for consistency with
other GLib APIs, this function actually only has millisecond
resolution, and the behavior is undefined if @timeout is not an
exact number of milliseconds.
Waits for up to @timeout microseconds for @condition to become true on @socket. If the condition is met, %TRUE is returned.
If @cancellable is cancelled before the condition is met, or if @timeout (or the socket's #GSocket:timeout) 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).
If you don't want a timeout, use g_socket_condition_wait(). (Alternatively, you can pass -1 for @timeout.)
Note that although @timeout is in microseconds for consistency with other GLib APIs, this function actually only has millisecond resolution, and the behavior is undefined if @timeout is not an exact number of milliseconds.