drogon/drogon_ctl/templates/demoMain.csp

12 lines
375 B
Plaintext
Raw Normal View History

2018-10-18 07:54:57 +00:00
#include <drogon/drogon.h>
2018-10-15 14:46:53 +00:00
int main() {
//Set HTTP listener address and port
drogon::app().addListener("0.0.0.0", 5555);
//Load config file
//drogon::app().loadConfigFile("../config.json");
//drogon::app().loadConfigFile("../config.yaml");
//Run HTTP framework,the method will block in the internal event loop
drogon::app().run();
2018-10-15 14:46:53 +00:00
return 0;
}