Re: [xml] xmlReaderForIO and non-blocking socket
- From: Daniel Veillard <veillard redhat com>
- To: Julien Billon <julien billon gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] xmlReaderForIO and non-blocking socket
- Date: Wed, 7 May 2008 09:49:10 -0400
On Mon, May 05, 2008 at 05:25:01PM +0200, Julien Billon wrote:
Hello, this is the first time I use libxml2 and I'd like to get it
work with a non-blocking socket and the xmlReaderForIo(). I managed to
use it with a blocking socket : I perform a recv() in the
ReadCallback() but if the callback return 0 or -1 (because the socket
will block so no data can be read), xmlTextReaderRead() returns -1.
Has someone already has the same consideration?
The reader is really built upon the assumption that you have a blocking
I/O subsystem, and as a result that the programing model is really
synchronous,
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]