Checks on the readiness of
socket to perform operations.
The operations specified in
condition are checked for and masked
against the currently-satisfied conditions on
socket. The result
Note that on Windows, it is possible for an operation to return
G_IO_ERROR_WOULD_BLOCK even immediately after
g_socket_condition_check() has claimed that the socket is ready for
writing. Rather than calling
g_socket_condition_check() and then
writing to the socket if it succeeds, it is generally better to
simply try writing to the socket right away, and try again later if
the initial attempt returns
It is meaningless to specify
G_IO_HUP in condition;
these conditions will always be set in the output if they are true.
This call never blocks.
Available since: 2.22
GIOConditionmask to check.