24 void add(
const uint64_t &
id,
const Socket & socket);
26 std::pair<size_t, epoll_event*>
wait(
const int & timeout_ms);
#define EVENTS_SIZE
Definition: Poller.hpp:8
Definition: Poller.hpp:13
Poller & operator=(const Poller &other)=delete
virtual ~Poller()
Definition: Poller.cpp:14
void remove(const Socket &socket)
Definition: Poller.cpp:57
std::pair< size_t, epoll_event * > wait(const int &timeout_ms)
Definition: Poller.cpp:63
void add(const uint64_t &id, const Socket &socket)
Definition: Poller.cpp:47
Poller(const Poller &other)=delete
Poller()
Definition: Poller.cpp:4
a RAII wrapper for a socket.
Definition: Socket.hpp:17