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

Public Methods | |
| virtual | ~NetworkOutputStream () |
| virtual bool | write (int b) |
| Writes a byte to the output stream. More... | |
| virtual bool | write (const Array< char > &b, int off, int len) |
| Writes part of an array to the output stream. More... | |
| virtual bool | write (const Array< char > &b) |
| Writes the whole array b to the output stream. More... | |
| virtual void | close () |
| close() does nothing here, you should close the Socket instead. | |
Protected Methods | |
| NetworkOutputStream (Socket *sock) | |
Protected Attributes | |
| Socket * | sock |
Friends | |
| class | Socket |
|
|
Writes the whole array b to the output stream. Since String is derived from Array<char> in libRT, you may also use this method to write Strings to the output stream.
Reimplemented from lrt::OutputStream. |
|
||||||||||||||||
|
Writes part of an array to the output stream.
Reimplemented from lrt::OutputStream. |
|
|
Writes a byte to the output stream. Subclassers must implement this method.
Implements lrt::OutputStream. |