31 lines
539 B
C++
31 lines
539 B
C++
|
|
#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 "common/TcpBase.hpp"
|
|
#include "config/ClientConfig.hpp"
|
|
|
|
class TcpClient : TcpBase {
|
|
|
|
public:
|
|
|
|
TcpClient(ConfigService* config, LoggerService* logger);
|
|
~TcpClient();
|
|
|
|
private:
|
|
|
|
ErrorCode init();
|
|
|
|
ClientParams configuration_;
|
|
|
|
};
|