Added an _old postfix to a few methods in HttpServer temporarily.

This commit is contained in:
Relintai 2021-02-02 18:26:14 +01:00
parent cf8e622765
commit 5cc22461fd
2 changed files with 12 additions and 7 deletions

View File

@ -36,14 +36,14 @@ void HTTPServer::wsEnterCallbackDefault(const HttpSession::Ptr &httpSession, Web
//httpSession->send(frame); //httpSession->send(frame);
} }
void HTTPServer::configure() { void HTTPServer::configure_old() {
} }
void HTTPServer::initialize() { void HTTPServer::initialize_old() {
if (service) if (service)
return; return;
configure(); configure_old();
service = TcpService::Create(); service = TcpService::Create();
service->startWorkerThread(threads); service->startWorkerThread(threads);
@ -77,7 +77,7 @@ void HTTPServer::initialize() {
listenBuilder->asyncRun(); listenBuilder->asyncRun();
} }
void HTTPServer::main_loop() { void HTTPServer::main_loop_old() {
while (true) { while (true) {
std::this_thread::sleep_for(std::chrono::seconds(1)); std::this_thread::sleep_for(std::chrono::seconds(1));

View File

@ -30,10 +30,15 @@ public:
static void httpEnterCallbackDefault(const HTTPParser &httpParser, const HttpSession::Ptr &session); static void httpEnterCallbackDefault(const HTTPParser &httpParser, const HttpSession::Ptr &session);
static void wsEnterCallbackDefault(const HttpSession::Ptr &httpSession, WebSocketFormat::WebSocketFrameType opcode, const std::string &payload); static void wsEnterCallbackDefault(const HttpSession::Ptr &httpSession, WebSocketFormat::WebSocketFrameType opcode, const std::string &payload);
virtual void configure(); virtual void configure_old();
virtual void initialize(); virtual void initialize_old();
void main_loop(); void main_loop_old();
//virtual void configure();
//virtual void initialize();
//void main_loop();
HTTPServer(); HTTPServer();
virtual ~HTTPServer(); virtual ~HTTPServer();