|
iodrivers_base
|
#include <IOStream.hpp>
Public Member Functions | |
| virtual | ~IOStream () |
| virtual void | waitRead (base::Time const &timeout)=0 |
| virtual void | waitWrite (base::Time const &timeout)=0 |
| virtual size_t | read (uint8_t *buffer, size_t buffer_size)=0 |
| virtual size_t | write (uint8_t const *buffer, size_t buffer_size)=0 |
| virtual void | clear ()=0 |
| virtual int | getFileDescriptor () const |
Generic IO handler that allows to wait, read and write to an IO stream
We're not using the default std::iostream interface as it is quite complicated, and the Driver class really needs little
|
virtual |
|
pure virtual |
Implemented in iodrivers_base::FDStream, and iodrivers_base::TestStream.
|
virtual |
If this IOStream is attached to a file descriptor, return it. Otherwise, returns INVALID_FD;
The default implementation returns INVALID_FD
Reimplemented in iodrivers_base::FDStream.
|
pure virtual |
Implemented in iodrivers_base::UDPServerStream, iodrivers_base::FDStream, and iodrivers_base::TestStream.
|
pure virtual |
Implemented in iodrivers_base::FDStream, and iodrivers_base::TestStream.
|
pure virtual |
Implemented in iodrivers_base::FDStream, and iodrivers_base::TestStream.
|
pure virtual |
Implemented in iodrivers_base::UDPServerStream, iodrivers_base::FDStream, and iodrivers_base::TestStream.
1.8.11