/* */ #ifndef D_WEB_SOCKET_SESSION_MAN_H #define D_WEB_SOCKET_SESSION_MAN_H #include "common.h" #include #include #include "SharedHandle.h" #include "a2functional.h" namespace aria2 { class RequestGroup; namespace rpc { class WebSocketSession; class WebSocketSessionMan { public: typedef std::set, RefLess > WebSocketSessions; WebSocketSessionMan(); ~WebSocketSessionMan(); void addSession(const SharedHandle& wsSession); void removeSession(const SharedHandle& wsSession); void addNotification(const std::string& method, const RequestGroup* group); private: WebSocketSessions sessions_; }; } // namespace rpc } // aria2 #endif // D_WEB_SOCKET_SESSION_MAN_H