Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinniefalco/d88bb6fc1bac84cebec01f0d27577160 to your computer and use it in GitHub Desktop.
Save vinniefalco/d88bb6fc1bac84cebec01f0d27577160 to your computer and use it in GitHub Desktop.
// 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