Minor main.cpp changes
This commit is contained in:
+5
-10
@@ -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>("/*", {
|
||||||
|
|||||||
Reference in New Issue
Block a user