mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
29 lines
535 B
C++
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
|