Send the entire data stream, sending the data to the requested data source.
This is simply a convenient alternative to virStreamRecv, for apps that do blocking-I/o.
this |
the stream |
cancellable |
cancellation notifier |
func |
the callback for writing data to application |
user_data |
data to be passed to |
the number of bytes consumed or -1 upon error |