Rewrite in C. Simple TCP listener.
This commit is contained in:
20
app/main.c
Normal file
20
app/main.c
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by nazar on 12.09.2025.
|
||||
//
|
||||
|
||||
#include "main.h"
|
||||
#include <stdio.h>
|
||||
|
||||
struct HttpResponse* handleRequest(struct HttpRequest* request)
|
||||
{
|
||||
struct HttpResponse* http_response = {};
|
||||
return http_response;
|
||||
}
|
||||
|
||||
int main() {
|
||||
struct HttpServer http_server;
|
||||
printf("Starting the server...\n");
|
||||
start_http_server(&http_server, ADDRESS, PORT);
|
||||
printf("Bye!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user