CCEngine/CCEngine/CCServer.h
2018-03-18 12:36:11 +01:00

25 lines
392 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();
void shutdown();
void clearCache();
private:
std::unique_ptr<detail::CCServerImpl> m_impl;
};