GSource* g_pollable_output_stream_create_source ( GPollableOutputStream* stream, GCancellable* cancellable )
GSource that triggers when
stream can be written, or
cancellable is triggered or an error occurs. The callback on the
source is of the
As with g_pollable_output_stream_is_writable(), it is possible that
the stream may not actually be writable even after the source
triggers, so you should use
g_output_stream_write() from the callback.
Available since: 2.28
The argument can be
The data is owned by the caller of the function.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|