1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/test/webfuse/utils/threaded_ws_server.h
2020-06-12 10:17:17 +02:00

29 lines
535 B
C++

#ifndef WF_TEST_UTILS_THREADED_WS_SERVER_HPP
#define WF_TEST_UTILS_THREADED_WS_SERVER_HPP
#include <libwebsockets.h>
#include <jansson.h>
#include <string>
namespace webfuse_test
{
class ThreadedWsServer
{
ThreadedWsServer(ThreadedWsServer const &) = delete;
ThreadedWsServer & operator=(ThreadedWsServer const &) = delete;
public:
explicit ThreadedWsServer(int port = 0);
~ThreadedWsServer();
void WaitForConnection();
std::string GetUrl() const;
private:
class Private;
Private * d;
};
}
#endif