Method
GioDataInputStreamread_until_async
deprecated: 2.56 since: 2.20
Declaration [src]
void
g_data_input_stream_read_until_async (
GDataInputStream* stream,
const gchar* stop_chars,
gint io_priority,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
The asynchronous version of g_data_input_stream_read_until(). It is an error to have two outstanding calls to this function.
Note that, in contrast to g_data_input_stream_read_until(), this function does not consume the stop character that it finds. You must read it for yourself.
When the operation is finished, callback will be called. You
can then call g_data_input_stream_read_until_finish() to get
the result of the operation.
Don’t use this function in new code. Its functionality is
inconsistent with g_data_input_stream_read_until(). Both functions
will be marked as deprecated in a future release. Use
g_data_input_stream_read_upto_async() instead.
Available since: 2.20
Deprecated since: 2.56
Use g_data_input_stream_read_upto_async() instead, which
has more consistent behaviour regarding the stop character.
This method completes asynchronously. Use g_data_input_stream_read_until_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
stop_chars-
Type:
const gchar*Characters to terminate the read.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. io_priority-
Type:
gintThe I/O priority of the request.
cancellable-
Type:
GCancellableOptional
GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackCallback to call when the request is satisfied.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to callback function.
The argument can be NULL.The data is owned by the caller of the method.