29#include "sptk5/SystemException.h"
32#include <sptk5/Exception.h>
33#include <sptk5/net/BaseSocket.h>
34#include <sptk5/net/SocketPool.h>
35#include <sptk5/threads/Flag.h>
36#include <sptk5/threads/Thread.h>
58 std::chrono::milliseconds timeout = std::chrono::milliseconds(
102 mutable std::mutex m_mutex;
104 std::map<int, void*> m_watchList;
105 std::chrono::milliseconds m_timeout;
108 bool m_shutdown {
false};
111using SharedSocketEvents = std::shared_ptr<SocketEvents>;
Definition: BaseSocket.h:87
Definition: SocketEvents.h:49
void remove(BaseSocket &socket)
SocketEvents(const String &name, const SocketEventCallback &eventsCallback, std::chrono::milliseconds timeout=std::chrono::milliseconds(100))
void add(BaseSocket &socket, uint8_t *userData)
void terminate() override
void threadFunction() override
Definition: SocketPool.h:94