#include <event_loop.H>


Public Member Functions | |
| BasicOutputStream (int fd) | |
| ~BasicOutputStream () | |
| const int | getFD () const |
| void | setWriteHandler (WriteHandler *handler) |
| void | setErrorHandler (ErrorHandler *handler) |
| void | setWriting (bool enabled) |
| int | write (const char *buf, int nbytes) |
| void | close (void) |
Private Member Functions | |
| BasicOutputStream (const BasicOutputStream &) | |
| BasicOutputStream & | operator= (const BasicOutputStream &) |
| void | handleWrite () |
| void | handleError () |
Private Attributes | |
| int | _fd |
| WriteHandler * | _write_handler |
| ErrorHandler * | _error_handler |
| BasicOutputStream::BasicOutputStream | ( | int | fd | ) | [explicit] |

| BasicOutputStream::~BasicOutputStream | ( | ) |
| BasicOutputStream::BasicOutputStream | ( | const BasicOutputStream & | ) | [private] |
| const int BasicOutputStream::getFD | ( | void | ) | const |
| void BasicOutputStream::setWriteHandler | ( | WriteHandler * | handler | ) | [virtual] |
Implements OutputStream.
| void BasicOutputStream::setErrorHandler | ( | ErrorHandler * | handler | ) | [virtual] |
Implements OutputStream.
| void BasicOutputStream::setWriting | ( | bool | enabled | ) | [virtual] |
Set whether or not the stream should be raising handleWrite() calls.
Implements OutputStream.

| int BasicOutputStream::write | ( | const char * | buf, | |
| int | nbytes | |||
| ) | [virtual] |
This should behave like the syscall write() on the descriptor in the underlying stream.
Implements OutputStream.
| void BasicOutputStream::close | ( | void | ) | [virtual] |
| BasicOutputStream& BasicOutputStream::operator= | ( | const BasicOutputStream & | ) | [private] |
| void BasicOutputStream::handleWrite | ( | void | ) | [private, virtual] |
| void BasicOutputStream::handleError | ( | void | ) | [private, virtual] |
int BasicOutputStream::_fd [private] |
WriteHandler* BasicOutputStream::_write_handler [private] |
ErrorHandler* BasicOutputStream::_error_handler [private] |
1.5.5