Refactor into src

This commit is contained in:
Alex Hultman
2018-05-06 19:38:08 +02:00
parent d43e9fc265
commit 9cf5042a57
10 changed files with 139 additions and 129 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
// uWS.h
#include "Hub.h"
#include <iostream>
int main() {
Hub h;
h.onHttpRequest([](auto req, auto res) {
// req = ?, res = HttpSocket
h.onHttpRequest([](auto req, auto res, char *data, unsigned int length) {
std::cout << "Got data: " << std::string(data, length) << std::endl;
// res.writeStatus();
// res.writeHeader();