write_async
Description:
[ Version ( since = "0.35" ) ]
public async ssize_t write_async (uint8[] buffer, Cancellable? cancellable) throws Error
public async ssize_t write_async (uint8[] buffer, Cancellable? cancellable) throws Error
Request an asynchronous write of count bytes from buffer
into the this.
When the operation is finished callback
will be called. You can then call
port_write_async.end to get the result of the operation.
Parameters:
this | |
buffer |
the buffer containing the data to write |
cancellable |
optional GCancellable object, NULL to ignore |
callback |
callback to call when the request is satisfied |
count |
the number of bytes to write |
user_data |
the data to pass to callback function |