mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02:00
Added an _old postfix to a few methods in HttpServer temporarily.
This commit is contained in:
parent
cf8e622765
commit
5cc22461fd
@ -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));
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user