Add example using the HTTP engine with I/O completion ports

This commit is contained in:
2025-05-13 00:59:24 +02:00
parent 3def70928f
commit af4127bfb7
2 changed files with 229 additions and 2 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
.PHONY: all report
OSTAG = LINUX
#OSTAG = WINDOWS
#OSTAG = LINUX
OSTAG = WINDOWS
EXT_WINDOWS = .exe
EXT_LINUX = .out
@@ -15,6 +15,7 @@ EXT = ${EXT_${OSTAG}}
all:
gcc -o simple_server$(EXT) examples/simple_server.c tinyhttp.c -Wall -Wextra -DHTTP_CLIENT=0 -DHTTP_ROUTER=0 $(LFLAGS)
gcc -o blocking_server_with_engine$(EXT) examples/blocking_server_with_engine.c tinyhttp.c -Wall -Wextra -DHTTP_CLIENT=0 -DHTTP_ROUTER=0 $(LFLAGS) -g3
gcc -o iocp_server_with_engine.exe examples/iocp_server_with_engine.c tinyhttp.c -Wall -Wextra -lws2_32
gcc -o test$(EXT) tests/test.c tests/test_branch_coverage_parse.c tests/test_branch_coverage_engine.c tests/test_fuzz_engine.c tinyhttp.c -fprofile-arcs -ftest-coverage $(LFLAGS)
report: