beginning drafting of tcp server

This commit is contained in:
2025-08-18 20:34:25 -05:00
parent 8b5fac0f3f
commit a9efa2dd52
9 changed files with 192 additions and 25 deletions

View File

@@ -1,13 +1,18 @@
#pragma once
#include <cstdlib>
#include <stdio.h>
typedef unsigned int uint;
template<class T> struct array {
T* data;
size_t len;
size_t cap;
inline T& operator[](int i) { return data[i]; }
};
typedef unsigned int uint;
template<class T> void append(array<T>& a, T el);
template<class T> T pop(array<T>& a);
template<class T> void resize(array<T>& a, size_t new_size);
bool read_file(array<char>* out, const char* filepath);