![]() |
Open Lighting Architecture 0.10.9
|
Allows a FD created by a library to be used with the SelectServer.
Public Member Functions | |
| UnmanagedFileDescriptor (int fd) | |
| Create a new UnmanagedFileDescriptor. | |
| DescriptorHandle | ReadDescriptor () const |
| Returns the read descriptor for this socket. | |
| DescriptorHandle | WriteDescriptor () const |
| Returns the write descriptor for this socket. | |
Public Member Functions inherited from ola::io::BidirectionalFileDescriptor | |
| 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. | |
Public Member Functions inherited from ola::io::ReadFileDescriptor | |
| bool | ValidReadDescriptor () const |
| Check if this file descriptor is valid. | |
Public Member Functions inherited from ola::io::WriteFileDescriptor | |
| bool | ValidWriteDescriptor () const |
| Check if this file descriptor is valid. | |
Protected Attributes | |
| DescriptorHandle | m_handle |
|
explicit |
Create a new UnmanagedFileDescriptor.
| fd | the file descriptor to use |
|
inlinevirtual |
Returns the read descriptor for this socket.
Implements ola::io::ReadFileDescriptor.
|
inlinevirtual |
Returns the write descriptor for this socket.
Implements ola::io::WriteFileDescriptor.