messy client<->server checkpoint
This commit is contained in:
31
client/src/TcpClient.hpp
Normal file
31
client/src/TcpClient.hpp
Normal 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_;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user