Open Lighting Architecture
Latest Git
|
Allows a FD created by a library to be used with the SelectServer.
Public Member Functions | |
UnmanagedFileDescriptor (int fd) | |
Create a new UnmanagedFileDescriptor. More... | |
DescriptorHandle | ReadDescriptor () const |
Returns the read descriptor for this socket. More... | |
DescriptorHandle | WriteDescriptor () const |
Returns the write descriptor for this socket. More... | |
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. More... | |
void | SetOnWritable (ola::Callback0< void > *on_write) |
Set the callback to be run when the descriptor can be written to. More... | |
void | PerformRead () |
Called when there is data available on the descriptor. More... | |
void | PerformWrite () |
Called when the descriptor can be written to. More... | |
Public Member Functions inherited from ola::io::ReadFileDescriptor | |
bool | ValidReadDescriptor () const |
Check if this file descriptor is valid. More... | |
Public Member Functions inherited from ola::io::WriteFileDescriptor | |
bool | ValidWriteDescriptor () const |
Check if this file descriptor is valid. More... | |
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.