mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
Added loop one method to http server.
This commit is contained in:
parent
d4ccc6775d
commit
c6033ab136
@ -103,6 +103,10 @@ void HTTPServer::initialize() {
|
|||||||
listenBuilder->asyncRun();
|
listenBuilder->asyncRun();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HTTPServer::loop_once() {
|
||||||
|
application->update();
|
||||||
|
}
|
||||||
|
|
||||||
void HTTPServer::main_loop() {
|
void HTTPServer::main_loop() {
|
||||||
while (true) {
|
while (true) {
|
||||||
//std::this_thread::sleep_for(std::chrono::seconds(1));
|
//std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||||
|
@ -37,6 +37,7 @@ public:
|
|||||||
virtual void configure();
|
virtual void configure();
|
||||||
virtual void initialize();
|
virtual void initialize();
|
||||||
|
|
||||||
|
void loop_once();
|
||||||
void main_loop();
|
void main_loop();
|
||||||
|
|
||||||
HTTPServer();
|
HTTPServer();
|
||||||
|
Loading…
Reference in New Issue
Block a user