Method
GioSocketcondition_wait
since: 2.22
Declaration [src]
gboolean
g_socket_condition_wait (
  GSocket* socket,
  GIOCondition condition,
  GCancellable* cancellable,
  GError** error
)
Description [src]
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().
Available since: 2.22
Parameters
- condition
- 
            Type: GIOConditionA GIOConditionmask to wait for.
- cancellable
- 
            Type: GCancellableA GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. 
- error
- 
            Type: GError **The return location for a recoverable error. The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.