20 #ifndef MPD_SOCKET_TIMEOUT_MONITOR_HXX
21 #define MPD_SOCKET_TIMEOUT_MONITOR_HXX
46 :loop(_loop), active(false) {
61 void Schedule(std::chrono::steady_clock::duration d);
virtual void OnTimeout()=0
This class monitors a timeout.
An event loop that polls for events on file/socket descriptors.
EventLoop & GetEventLoop()
void Run()
The main function of this class.
TimeoutMonitor(EventLoop &_loop)
void Schedule(std::chrono::steady_clock::duration d)