26 lines
420 B
C++
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;
|
|
};
|