21 #ifndef COMMON_IO_SELECTPOLLER_H_
22 #define COMMON_IO_SELECTPOLLER_H_
24 #include <ola/Clock.h>
32 #include "common/io/PollerInterface.h"
33 #include "common/io/TimeoutManager.h"
56 bool delete_on_close);
63 const TimeStamp *WakeUpTime()
const {
return &m_wake_up_time; }
72 } connected_descriptor_t;
74 typedef std::map<int, ReadFileDescriptor*> ReadDescriptorMap;
75 typedef std::map<int, WriteFileDescriptor*> WriteDescriptorMap;
76 typedef std::map<int, connected_descriptor_t*> ConnectedDescriptorMap;
84 ReadDescriptorMap m_read_descriptors;
85 WriteDescriptorMap m_write_descriptors;
86 ConnectedDescriptorMap m_connected_read_descriptors;
88 void CheckDescriptors(fd_set *r_set, fd_set *w_set);
89 bool AddDescriptorsToSet(fd_set *r_set, fd_set *w_set,
int *max_sd);
95 #endif // COMMON_IO_SELECTPOLLER_H_