CCEngine/CCEngine/src/CCServer.h
Peter Sykora 3e3de79dca [impl] isRunning call for Http server to check whether it is still running
[impl] Ability to update system files of the update program
2018-03-31 14:49:36 +02:00

26 lines
420 B
C++

#pragma once
#include <memory>
#include <string>
namespace detail
{
class CCServerImpl;
}
class CCServer final
{
public:
CCServer(const std::string& addressToListen, uint16_t portToListen, const std::string& docRoot, int threads);
~CCServer();
public:
void run();
bool isRunning() const;
void shutdown();
void clearCache();
private:
std::unique_ptr<detail::CCServerImpl> m_impl;
};