28 lines
458 B
C++
28 lines
458 B
C++
|
/*
|
|||
|
* client.hpp
|
|||
|
*
|
|||
|
* Created on: 7 сент. 2022 г.
|
|||
|
* Author: alexander
|
|||
|
*/
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include <stock.hpp>
|
|||
|
|
|||
|
namespace zh
|
|||
|
{
|
|||
|
|
|||
|
class ClientTCP: public Server // @suppress("Class has a virtual method and non-virtual destructor")
|
|||
|
{
|
|||
|
private:
|
|||
|
bool _connect;
|
|||
|
int _connfd;
|
|||
|
|
|||
|
void chat();
|
|||
|
public:
|
|||
|
ClientTCP(const std::string &address, const unsigned short int port, const unsigned short int sizeBuffer = 1024);
|
|||
|
void connect();
|
|||
|
};
|
|||
|
|
|||
|
}
|