Refactored project structure, added multithreaded echo server and prime checking server, updated tests.
This commit is contained in:
8
data.h
8
data.h
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <stdio.h>
|
||||
|
||||
#include <winsock2.h>
|
||||
typedef struct CharArray {
|
||||
size_t size;
|
||||
size_t capacity;
|
||||
@@ -11,4 +11,8 @@ char_array_t *char_array_create(int size);
|
||||
void char_array_destroy(char_array_t *array);
|
||||
void char_array_append(char_array_t *array, char *value, size_t length);
|
||||
void char_array_print(const char_array_t *array);
|
||||
void char_array_wipe(char_array_t *array);
|
||||
void char_array_wipe(char_array_t *array);
|
||||
bool char_array_has_char(char_array_t *array, char c);
|
||||
char *char_array_get_until_char(char_array_t *array, char c);
|
||||
|
||||
SOCKET get_listen_socket();
|
||||
Reference in New Issue
Block a user