[xml] xmlReaderForIO and non-blocking socket



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?

Regards,

Julien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]