Anant Narayanan wrote:
> However, like Boris mentioned earlier, I would be better off moving
> the read() call into the channel implementation rather than doing all
> this in newChannel().

Yeah, that seems better. You'd still have to use a blocking input stream 
though.

On the other hand, you might want to use nsIInputStreamPump to wait for 
the data, since using a blocking input stream hangs the UI while waiting 
for data to arrive. Or you could QueryInterface the stream to 
nsIAsyncInputStream and call asyncWait to wait for data to arrive. (If 
you do either of those, you don't need a blocking stream anymore)

-christian
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to