Rewrite in C. Simple TCP listener.

This commit is contained in:
2025-09-13 00:57:47 +03:00
parent 418d33a6de
commit 39db2830e2
9 changed files with 149 additions and 77 deletions

16
app/main.h Normal file
View File

@@ -0,0 +1,16 @@
//
// Created by nazar on 12.09.2025.
//
#ifndef SIMPLEHTTPSERVER_MAIN_H
#define SIMPLEHTTPSERVER_MAIN_H
#include "../src/httpserver.h"
#define ADDRESS "127.0.0.1"
#define PORT 8080
struct HttpResponse* handleRequest(struct HttpRequest* request);
int main();
#endif //SIMPLEHTTPSERVER_MAIN_H