mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +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();
|
||||
}
|
||||
|
||||
void HTTPServer::loop_once() {
|
||||
application->update();
|
||||
}
|
||||
|
||||
void HTTPServer::main_loop() {
|
||||
while (true) {
|
||||
//std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
|
@ -37,6 +37,7 @@ public:
|
||||
virtual void configure();
|
||||
virtual void initialize();
|
||||
|
||||
void loop_once();
|
||||
void main_loop();
|
||||
|
||||
HTTPServer();
|
||||
|
Loading…
Reference in New Issue
Block a user