You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2002/04/24 23:36:31 UTC

Re: TCP socket InputSource

"Michael Wojcik" <Mi...@microfocus.com> writes:

> > From: Hespelt, Steve (Exchange) [mailto:shespelt@bear.com]
> > Sent: Wednesday, April 24, 2002 12:59 PM
> 
> [re receiving a document from a TCP socket]
> 
> > I used a callback (the BinInputStream object is the registered
> > callback object) strategy on the parsing of the top level tag so
> > when the parser was done seeing the entire XML document, the
> > callback notified the BinInputStream that there was no more need to
> > read & that object sets a flag that is checked inside readBytes()
> > prior to doing a read on the socket (option #2 below).  my
> > readBytes() blocks for a very short time & returns what it has
> > read.

Hey Tinny,

Would you be willing to receive this as a patch to incorporate the
TCPSocketInputSource as a standard input source for Xerces?

Just thinking that it's a generally useful idea.
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org