nsIInputStream::available
Christian Biesinger <[email protected]> Sun, 09 May 2004 20:32:15 +0200
| Newsgroups | gmane.comp.mozilla.devel.netlib,gmane.comp.mozilla.devel.xpcom |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've got a question about nsIInputStream::available... It is documented as follows: 90 /** 91 * @return number of bytes currently available in the stream 92 */ 93 unsigned long available(); So, my question is, what does it mean for available() to return 0? Does it indicate that at the moment, no data is available, but at a later time available() may return a number > 0? Or, does it indicate EOF? If the former is the case, how is it possible to detect EOF on a blocking input stream? -biesi