diff --git a/YACReaderLibrary/server/main.cpp b/YACReaderLibrary/server/main.cpp deleted file mode 100644 index d5ac4be5..00000000 --- a/YACReaderLibrary/server/main.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/** - @file - @author Stefan Frings -*/ - -/** - @mainpage - This project provies libraries for writing server-side web application in C++ - based on the Qt toolkit. It is a light-weight implementation that works like - Java Servlets from the programmers point of view. -

- Features: - - - HTTP 1.1 web server - - persistent connections - - chunked and non-chunked transfer - - file uploads (multipart encoded forms) - - cookies - - sessions - - uses dynamic thread pool - - optional file cache - - Template engine - - multi-language - - optional file cache - - Logger - - configurable without program restart - - automatic backup and file rotation - - configurable message format - - messages may contain thread-local variables - - optional buffer for writing history details in case of an error - - Example application - - Install and run as Windows service, unix daemon or at the command-line - - Search config file in multiple common directories - - Demonstrates how to write servlets for common use-cases - - If you write a real application based on this source, take a look into startup.cpp, - which contains startup and shutdown procedures. The example source sets - up a single listener on port 8080, however multiple listeners with individual - configuration could be set up. -

- Incoming requests are mapped to controller classes in requestmapper.cpp, based on the - requested path. If you want to learn form the example, then focus on these classes. -

- High-availability and HTTPS encryption can be easily added by putting an Apache HTTP server - in front of the self-written web application using the mod-proxy module with sticky sessions. -*/ - -#include "startup.h" - -/** - Entry point of the program. - Passes control to the service helper. -*/ -int main(int argc, char *argv[]) { - // Use a qtservice wrapper to start the application as a Windows service or Unix daemon - Startup startup(argc, argv); - return startup.exec(); -} diff --git a/YACReaderLibrary/server/startup.h b/YACReaderLibrary/server/startup.h index a3573e26..1ad5ebbe 100644 --- a/YACReaderLibrary/server/startup.h +++ b/YACReaderLibrary/server/startup.h @@ -6,6 +6,8 @@ #ifndef STARTUP_H #define STARTUP_H +#include + class HttpListener; /** Helper class to install and run the application as a windows