927d6436d1a0c0809265f18b6343be7cdba2533a
Closing the socket after calling the invokeSlot and not in QHttpServer after process, because the invocation can be deferred if more data needs to be read from the socket, so closing the socket after calling invokeSlot guarantees that the socket is close when the slot finishes.
QHTTPEngine
Simple set of classes for developing HTTP server applications in Qt.
Build Requirements
QHttpEngine requires a modern C++ compiler supported by the Qt framework. Some examples include:
- Microsoft Visual C++ Express
- GCC (including MinGW-w64)
- Clang
CMake 3.2+ and Qt 5.4+ are required to build the library.
Build Instructions
Use the instructions below to build the library:
-
Open a terminal or command prompt and run the following commands to create a directory for the files that will be built:
mkdir build cd build -
Run CMake to generate the Makefile that will be used to build the library:
cmake ..Note: on Windows, you will need to change the last command to the following in order to generate a Makefile:
cmake -G "NMake Makefiles" .. -
Build the library:
- Unix-based (including MinGW-w64):
make - Windows (MSVC++):
nmake
- Unix-based (including MinGW-w64):
Description
Languages
C++
97.1%
CMake
2.9%