This commit is contained in:
cdricms
2024-11-19 16:28:54 +01:00
parent a4f779d5d7
commit 7b52f5de7d
7 changed files with 71 additions and 33 deletions

4
main.c
View File

@@ -1,9 +1,6 @@
#include "http/http_server.h"
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <unistd.h>
int main() {
HttpServer server = {.port = 8080, .workers = 3};
@@ -14,7 +11,6 @@ int main() {
while ((status = http_server_run(&server)) == HTTP_SRS_RUNNING)
;
printf("Status: %d\n", status);
http_server_stop(&server);