]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Support callbacks on virStream APIs in remote driver client
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Jul 2010 12:24:37 +0000 (13:24 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Nov 2010 16:02:35 +0000 (16:02 +0000)
commit5126926548e9efbae4ef432ec3bc0afddda3162f
treec7efd27f6fcd914907fb4bcc2e872b3d79a9c495
parent2fbec002031934c0e5ad660c6af6e34a2647ed3d
Support callbacks on virStream APIs in remote driver client

The current remote driver code for streams only supports
blocking I/O mode. This is fine for the usage with migration
but is a problem for more general use cases, in particular
bi-directional streams.

This adds supported for the stream callbacks and non-blocking
I/O. with the minor caveat is that it doesn't actually do
non-blocking I/O for sending stream data, only receiving it.
A future patch will try to do non-blocking sends, but this is
quite tricky to get right.

* src/remote/remote_driver.c: Allow non-blocking I/O for
  streams and support callbacks
src/remote/remote_driver.c