Open Lighting Architecture  0.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::io::ReadFileDescriptor Class Reference

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 ola::testing::MockUDPSocket

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

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::io::BidirectionalFileDescriptor, ola::network::TCPAcceptingSocket, and ola::DNSSDDescriptor.

virtual DescriptorHandle ola::io::ReadFileDescriptor::ReadDescriptor ( ) const
pure virtual
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: