messy client<->server checkpoint

This commit is contained in:
2026-07-17 13:58:53 -05:00
parent 3a3f67c4ef
commit 235530c03d
16 changed files with 357 additions and 5 deletions

31
client/src/TcpClient.hpp Normal file
View File

@@ -0,0 +1,31 @@
#pragma once
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/time.h> // TODO replace with chrono
#include "common/config/ConfigService.hpp"
#include "common/LoggerService.hpp"
#include "common/ErrorCodes.hpp"
#include "config/ClientConfig.hpp"
class TcpClient {
public:
TcpClient(ConfigService* config, LoggerService* logger);
~TcpClient();
private:
ErrorCode init();
LoggerService* logger_;
ConfigService* config_;
ClientParams configuration_;
};