mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01: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);
|
||||
}
|
||||
|
||||
void HTTPServer::configure() {
|
||||
void HTTPServer::configure_old() {
|
||||
}
|
||||
|
||||
void HTTPServer::initialize() {
|
||||
void HTTPServer::initialize_old() {
|
||||
if (service)
|
||||
return;
|
||||
|
||||
configure();
|
||||
configure_old();
|
||||
|
||||
service = TcpService::Create();
|
||||
service->startWorkerThread(threads);
|
||||
@ -77,7 +77,7 @@ void HTTPServer::initialize() {
|
||||
listenBuilder->asyncRun();
|
||||
}
|
||||
|
||||
void HTTPServer::main_loop() {
|
||||
void HTTPServer::main_loop_old() {
|
||||
while (true) {
|
||||
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 wsEnterCallbackDefault(const HttpSession::Ptr &httpSession, WebSocketFormat::WebSocketFrameType opcode, const std::string &payload);
|
||||
|
||||
virtual void configure();
|
||||
virtual void initialize();
|
||||
virtual void configure_old();
|
||||
virtual void initialize_old();
|
||||
|
||||
void main_loop();
|
||||
void main_loop_old();
|
||||
|
||||
//virtual void configure();
|
||||
//virtual void initialize();
|
||||
|
||||
//void main_loop();
|
||||
|
||||
HTTPServer();
|
||||
virtual ~HTTPServer();
|
||||
|
Loading…
Reference in New Issue
Block a user