main_server.cpp¶
This file just instances the server and run it with a simple configuration parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include "lasote/httpserver/http_server.h"
#include "my_http_middle_ware.h"
using namespace httpserver;
using namespace gip;
int main(){
MyHttpMiddleware my_mmiddleware;
HttpServerConf conf(9000, 300, 60, 5);
HttpServer http_server;
http_server.run(&my_mmiddleware, &conf);
return 0;
}
|