Anant Narayanan wrote:
> [Exception... "Component returned failure code: 0x80470007
> (NS_BASE_STREAM_WOULD_BLOCK) [nsIBinaryInputStream.readBytes]"
> nsresult: "0x80470007 (NS_BASE_STREAM_WOULD_BLOCK)"  location: "JS
> frame :: file:///Users/anant/Plan9/web9/js9p/angled/components/sockets.js
> :: anonymous :: line 59"  data: no]
> 
> Does this mean there is no data available on the socket to read? 

Yes. If you want the read methods to wait until bytes are available 
instead of immediately returning when they are not, you need to pass 
Components.interfaces.nsITransport.OPEN_BLOCKING as the first argument 
to openInputStream.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to