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 is returned.
Note that on Windows, it is possible for an operation to return gio.types.IOErrorEnum.WouldBlock even immediately after gio.socket.Socket.conditionCheck has claimed that the socket is ready for writing. Rather than calling gio.socket.Socket.conditionCheck 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 gio.types.IOErrorEnum.WouldBlock.
It is meaningless to specify glib.types.IOCondition.Err or glib.types.IOCondition.Hup in condition; these conditions will always be set in the output if they are true.
This call never blocks.
a #GIOCondition mask to check
the GIOCondition mask of the current state
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 is returned.
Note that on Windows, it is possible for an operation to return gio.types.IOErrorEnum.WouldBlock even immediately after gio.socket.Socket.conditionCheck has claimed that the socket is ready for writing. Rather than calling gio.socket.Socket.conditionCheck 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 gio.types.IOErrorEnum.WouldBlock.
It is meaningless to specify glib.types.IOCondition.Err or glib.types.IOCondition.Hup in condition; these conditions will always be set in the output if they are true.
This call never blocks.