Created
June 5, 2020 04:05
-
-
Save vinniefalco/d88bb6fc1bac84cebec01f0d27577160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the server. | |
auto server = lounge::server::create(); | |
// (Add user-defined services) | |
// Start the services. | |
server->start(); | |
// Run configuration RPC commands | |
server->do_rpc( | |
"http.create_port", | |
{ | |
{ "address" , "127.0.0.1" }, | |
{ "port" , 8080 } | |
}); | |
server->do_rpc( | |
"http.set_doc_root", | |
{ | |
{ "path" , "" }, | |
}); | |
// Run the server on this many threads. | |
server->run(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment