21 lines
403 B
C
21 lines
403 B
C
//
|
|
// 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); |