Refactored project structure, added multithreaded echo server and prime checking server, updated tests.

This commit is contained in:
2025-07-28 17:31:05 +01:00
parent 4926cfe0d3
commit fec3f555e9
14 changed files with 621 additions and 110 deletions

21
server01.h Normal file
View File

@@ -0,0 +1,21 @@
//
// Created by PeterDwyer on 28/07/2025.
//
#ifndef SERVER01_H
#define SERVER01_H
#include <winsock2.h>
#include "data.h"
#pragma once
typedef struct HandleArgs {
int connection;
SOCKET client;
} handle_args_t;
#endif //SERVER01_H
bool is_prime(const int number);
void *handle_connection(void *args);
void parse_request(handle_args_t *handleArgs, const char *request, char_array_t *data);