5#include "webcface/common/webcface-config.h"
7#include <spdlog/common.h>
8#include <spdlog/logger.h>
9#include <condition_variable>
26 std::atomic<bool> server_stop;
27 std::mutex server_mtx;
28 std::vector<void *> apps;
29 std::vector<std::thread> apps_running;
31 void pingThreadMain();
33 void send(
wsConnPtr conn,
const std::string &msg);
38 std::unique_ptr<ServerStorage>
store;
41 std::thread ping_thread;
44 Server(std::uint16_t port,
int level,
int keep_log = 1000,
45 spdlog::sink_ptr sink =
nullptr,
46 std::shared_ptr<spdlog::logger> logger =
nullptr);
friend MemberData
Definition server.h:36
Server & operator=(Server &&)=delete
Server & operator=(const Server &)=delete
std::condition_variable server_ping_wait
Definition server.h:37
std::unique_ptr< ServerStorage > store
Definition server.h:38
Server(const Server &)=delete
void * wsConnPtr
Definition server.h:21
void initVips()
Definition image_conversion.cc:15
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103