From 9f7530aa40c4197a8c1979b37baab43ba2e6205f Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Tue, 11 Aug 2015 15:13:25 +0200 Subject: hello world test for mongoose --- src/server.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/server.cpp (limited to 'src') diff --git a/src/server.cpp b/src/server.cpp new file mode 100644 index 0000000..222e8ea --- /dev/null +++ b/src/server.cpp @@ -0,0 +1,34 @@ +#include +#include +#include "mongoose.h" + +using namespace std; + +int event_handler(struct mg_connection *conn, enum mg_event ev) { + switch (ev) { + case MG_AUTH: return MG_TRUE; + case MG_REQUEST: + if (conn->uri) { + cout<request_method<<" "<uri<