read_upto_async
Description:
public async string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length) throws IOError
The asynchronous version of read_upto.
It is an error to have two outstanding calls to this function.
In contrast to read_until, this function does not consume the stop character. You have to use read_byte to get it before calling read_upto again.
Note that stop_chars may contain '\0' if stop_chars_len is specified.
When the operation is finished, callback will be called. You can then call read_upto_async.end to get
the result of the operation.
Parameters:
| this | |
| stop_chars |
characters to terminate the read |
| stop_chars_len |
length of |
| io_priority |
the [I/O priority](iface.AsyncResult.html#io-priority) of the request |
| cancellable |
optional Cancellable object, null to ignore |
| callback |
callback to call when the request is satisfied |
| user_data |
the data to pass to callback function |