atsushi at ximian.com
Thu Feb 26 02:38:14 EST 2004
Before I changed XmlTextReader design to hold internal cache and
read the stream in advance, I tested how MS.NET(1.1) did buffering.
When you ran attached example (which uses StreamReader wrapper and
wrapped WebClient stream in such way), you will find XmlTextReader
reading the stream regardless of its markup (note that first Read()
fills the buffer up to 4096 and they never calls Read()).
If you have existing code that ran successfully under MS.NET,
please post it, and then I can review it.
BTW, if you want to get remaining stream, you can use GetRemainder().
Janus N. Tøndering wrote:
> I am working on a Jabber client for GTK/GNOME and I decided to use
> Mono/C# as the development platform. I am not experienced with either.
> I have run into some problems with XmlTextReader. I am sending a
> "<iq...>...</iq>" message and I am waiting for the response. No matter
> what Read method I use it won't return the data received before the
> connection times out and the server sends an error message. I used
> tcpdump to verify that the answer actually arrives.
> I am aware that XmlTextReader does buffering but shouldn't it return
> data as soon as it is available? Is there anything special I should be
> aware of?
> If needed, I can post the code in question.
> Any help is appreciated.
> Janus N. Tøndering
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-devel-list