Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
ola::io::ReadFileDescriptor Class Referenceabstract

Detailed Description

Represents a file descriptor that supports reading data.

Inheritance diagram for ola::io::ReadFileDescriptor:
ola::DNSSDDescriptor ola::io::BidirectionalFileDescriptor ola::network::TCPAcceptingSocket ola::io::ConnectedDescriptor ola::io::UnmanagedFileDescriptor ola::network::UDPSocketInterface ola::io::DeviceDescriptor ola::io::LoopbackDescriptor ola::io::PipeDescriptor ola::io::UnixSocket ola::network::TCPSocket ola::network::UDPSocket

Public Member Functions

virtual DescriptorHandle ReadDescriptor () const =0
 Returns the read descriptor for this socket.
 
bool ValidReadDescriptor () const
 Check if this file descriptor is valid.
 
virtual void PerformRead ()=0
 Called when there is data available on the descriptor.
 

Member Function Documentation

◆ PerformRead()

virtual void ola::io::ReadFileDescriptor::PerformRead ( )
pure virtual

Called when there is data available on the descriptor.

This is usually called by the SelectServer.

Implemented in ola::DNSSDDescriptor, ola::io::BidirectionalFileDescriptor, and ola::network::TCPAcceptingSocket.

◆ ReadDescriptor()

virtual DescriptorHandle ola::io::ReadFileDescriptor::ReadDescriptor ( ) const
pure virtual

◆ ValidReadDescriptor()

bool ola::io::ReadFileDescriptor::ValidReadDescriptor ( ) const
inline

Check if this file descriptor is valid.

Returns
true if the read descriptor is valid.

The documentation for this class was generated from the following file: