#include <rtnetwork.h>
Inheritance diagram for lrt::NetworkInputStream:

Public Methods | |
| ~NetworkInputStream () | |
| virtual int | read () |
| Reads a byte from the stream. More... | |
| virtual int | read (Array< char > &b, int off, int len) |
| Reads up to len bytes from the stream, storing them in b, beginning at position off. More... | |
| virtual bool | eos () |
| Checks if this stream's end has been reached. More... | |
| virtual void | close () |
| close() does nothing here, you should close the Socket instead. | |
Protected Methods | |
| NetworkInputStream (Socket *sock) | |
Protected Attributes | |
| Socket * | sock |
Friends | |
| class | Socket |
|
|
Checks if this stream's end has been reached. This method must be implemented by subclassers!
Implements lrt::InputStream. |
|
||||||||||||||||
|
Reads up to len bytes from the stream, storing them in b, beginning at position off. Note that b must be large enough.
Reimplemented from lrt::InputStream. |
|
|
Reads a byte from the stream. If the stream cannot be read (or is EOF), this method returns -1. This method must be implemented by subclassers!
Implements lrt::InputStream. |