21 #ifndef COMMON_IO_POLLERINTERFACE_H_ 22 #define COMMON_IO_POLLERINTERFACE_H_ 24 #include <ola/Clock.h> 27 #include "common/io/TimeoutManager.h" 95 bool delete_on_close) = 0;
132 virtual const TimeStamp *WakeUpTime()
const = 0;
153 #endif // COMMON_IO_POLLERINTERFACE_H_ A time interval, with usecond accuracy.
Definition: Clock.h:138
static const char K_LOOP_COUNT[]
The number of iterations through the event loop.
Definition: PollerInterface.h:149
virtual ~PollerInterface()
Destructor.
Definition: PollerInterface.h:75
Manages timer events.
Definition: TimeoutManager.h:45
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
virtual bool AddReadDescriptor(ReadFileDescriptor *descriptor)=0
Register a ReadFileDescriptor for read events.
static const char K_CONNECTED_DESCRIPTORS_VAR[]
The number of connected descriptors registered for read events.
Definition: PollerInterface.h:145
virtual bool RemoveReadDescriptor(ReadFileDescriptor *descriptor)=0
Unregister a ReadFileDescriptor for read events.
virtual bool AddWriteDescriptor(WriteFileDescriptor *descriptor)=0
Register a WriteFileDescriptor to receive ready-to-write events.
static const char K_LOOP_TIME[]
The time spent in the event loop.
Definition: PollerInterface.h:148
virtual bool RemoveWriteDescriptor(WriteFileDescriptor *descriptor)=0
Unregister a WriteFileDescriptor for write events.
static const char K_WRITE_DESCRIPTOR_VAR[]
The number of descriptors registered for write events.
Definition: PollerInterface.h:144
virtual bool Poll(TimeoutManager *timeout_manager, const TimeInterval &poll_interval)=0
Poll the Descriptors for events and execute any callbacks.
Represents a file descriptor that supports reading data.
Definition: Descriptor.h:140
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
static const char K_READ_DESCRIPTOR_VAR[]
The number of descriptors registered for read events.
Definition: PollerInterface.h:143
The interface for the Poller classes.
Definition: PollerInterface.h:70
Represents a point in time with microsecond accuracy.
Definition: Clock.h:191
Represents a file descriptor that supports writing data.
Definition: Descriptor.h:170