A file descriptor that supports both read & write.
Public Member Functions |
void | SetOnData (ola::Callback0< void > *on_read) |
| Set the callback to be run when data is available for reading.
|
void | SetOnWritable (ola::Callback0< void > *on_write) |
| Set the callback to be run when the descriptor can be written to.
|
void | PerformRead () |
| Called when there is data available on the descriptor.
|
void | PerformWrite () |
| Called when the descriptor can be written to.
|
virtual DescriptorHandle | ReadDescriptor () const =0 |
| Returns the read descriptor for this socket.
|
bool | ValidReadDescriptor () const |
| Check if this file descriptor is valid.
|
virtual DescriptorHandle | WriteDescriptor () const =0 |
| Returns the write descriptor for this socket.
|
bool | ValidWriteDescriptor () const |
| Check if this file descriptor is valid.
|