%G_POLLABLE_RETURN_OK on success, G_POLLABLE_RETURN_WOULD_BLOCK if the stream is not currently writable (and error is *not* set), or G_POLLABLE_RETURN_FAILED if there was an error in which case error will be set.
GException on failure.