2022-11-13 21:22:35 +00:00
|
|
|
#ifndef WEBFUSE_WSSERVER_HPP
|
2022-11-14 18:02:46 +00:00
|
|
|
#define WEBFUSE_WSSERVER_HPP
|
2022-11-13 21:22:35 +00:00
|
|
|
|
|
|
|
#include "webfuse/ws/config.hpp"
|
2022-11-19 21:57:32 +00:00
|
|
|
#include "webfuse/ws/message.hpp"
|
|
|
|
|
|
|
|
#include <vector>
|
2022-11-14 18:02:46 +00:00
|
|
|
#include <string>
|
2022-11-19 21:57:32 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2022-11-13 21:22:35 +00:00
|
|
|
namespace webfuse
|
|
|
|
{
|
|
|
|
|
|
|
|
class ws_server
|
|
|
|
{
|
|
|
|
ws_server(ws_server const &) = delete;
|
|
|
|
ws_server& operator=(ws_server const &) = delete;
|
|
|
|
public:
|
|
|
|
ws_server(ws_config const & config);
|
|
|
|
~ws_server();
|
|
|
|
ws_server(ws_server && other);
|
|
|
|
ws_server& operator=(ws_server && other);
|
2022-11-19 21:57:32 +00:00
|
|
|
|
|
|
|
void perform(message msg);
|
2022-11-13 21:22:35 +00:00
|
|
|
private:
|
|
|
|
class detail;
|
|
|
|
detail * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|