Minor main.cpp changes

This commit is contained in:
Alex Hultman
2018-12-26 20:42:36 +01:00
parent 9c037747ab
commit 1e5bb25d5c
+5 -10
View File
@@ -1,7 +1,7 @@
#include "App.h" #include "App.h"
#include "../examples/helpers/AsyncFileReader.h" //#include "../examples/helpers/AsyncFileReader.h"
#include "../examples/helpers/AsyncFileStreamer.h" //#include "../examples/helpers/AsyncFileStreamer.h"
int main(int argc, char **argv) { int main(int argc, char **argv) {
@@ -10,15 +10,10 @@ int main(int argc, char **argv) {
int hello; int hello;
}; };
/*const char *key_file_name;
const char *cert_file_name;
const char *passphrase;
const char *dh_params_file_name;*/
uWS::SSLApp({ uWS::SSLApp({
"/home/alexhultman/key.pem", .key_file_name = "/home/alexhultman/key.pem",
"/home/alexhultman/cert.pem", .cert_file_name = "/home/alexhultman/cert.pem",
"1234" .passphrase = "1234"
}).get("/hello", [](auto *res, auto *req) { }).get("/hello", [](auto *res, auto *req) {
res->end("Hello HTTP!"); res->end("Hello HTTP!");
}).ws<PerSocketData>("/*", { }).ws<PerSocketData>("/*", {