Jon Smirl wrote:
They aren't totally transparent because things like
nsIInputStreamCallback are getting called on the socket thread. I'm
starting to figure this out and get things set up right.

Well that depends on the target argument to asyncWait.

The header for the available() method says it will return
NS_BASE_STREAM_CLOSED but it doesn't seem to be doing that.

It says it will return that if the stream is closed. It also says that it returns 0 if the stream if at EOF but not closed. You didn't close it presumably, so it's not closed.

Hm, the documentation here doesn't seem to be so great...

 And in my code it isn't returning
NS_BASE_STREAM_CLOSED, it just returns zero available and I loop.

Sounds like a bug in your code :-) The docs say that 0 means EOF.
_______________________________________________
dev-tech-network mailing list
dev-tech-network@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to