geekbrains_network_programming/lesson_03/header/client.hpp

28 lines
458 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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();
};
}