21 #ifndef INCLUDE_OLA_IO_SELECTSERVERINTERFACE_H_
22 #define INCLUDE_OLA_IO_SELECTSERVERINTERFACE_H_
25 #include <ola/Clock.h>
27 #include <ola/thread/SchedulingExecutorInterface.h>
70 bool delete_on_close =
false) = 0;
137 #endif // INCLUDE_OLA_IO_SELECTSERVERINTERFACE_H_
A 0 arg, single use callback that returns void.
Definition: Callback.h:157
virtual void RemoveReadDescriptor(class ReadFileDescriptor *descriptor)=0
Remove a ReadFileDescriptor for read-events.
Combines the ExecutorInterface and the SchedulerInterface.
Definition: SchedulingExecutorInterface.h:33
virtual ola::thread::timeout_id RegisterRepeatingTimeout(unsigned int ms, Callback0< bool > *closure)=0
Execute a callback periodically.
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
A 0 argument callback which can be called multiple times.
Definition: Callback.h:129
virtual bool AddWriteDescriptor(class WriteFileDescriptor *descriptor)=0
Register a WriteFileDescriptor for write-events.
virtual void RemoveTimeout(ola::thread::timeout_id id)=0
Cancel an existing timeout.
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition: SchedulerInterface.h:34
The interface for the SelectServer.
Definition: SelectServerInterface.h:42
virtual void RemoveWriteDescriptor(class WriteFileDescriptor *descriptor)=0
Remove a WriteFileDescriptor for write-events.
virtual ola::thread::timeout_id RegisterSingleTimeout(unsigned int ms, SingleUseCallback0< void > *closure)=0
Execute a callback after a certain time interval.
Represents a file descriptor that supports reading data.
Definition: Descriptor.h:140
virtual const TimeStamp * WakeUpTime() const =0
The time when this SelectServer was woken up.
virtual bool AddReadDescriptor(class ReadFileDescriptor *descriptor)=0
Register a ReadFileDescriptor for read-events.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Represents a file descriptor that supports writing data.
Definition: Descriptor.h:170