16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00
This commit is contained in:
milek7
2019-01-18 00:36:41 +01:00
parent f63bd04bfe
commit 1314f09c4d
3 changed files with 4 additions and 6 deletions

View File

@@ -19,9 +19,9 @@ namespace network::tcp
virtual void send_data(std::shared_ptr<std::string> buffer) override;
virtual void send_message(const message &msg) override;
private:
asio::ip::tcp::socket m_socket;
private:
std::string m_header_buffer;
std::string m_body_buffer;

View File

@@ -11,9 +11,6 @@ namespace network
{
class connection
{
friend class server;
friend class client;
private:
/*
std::queue<
@@ -29,9 +26,10 @@ namespace network
bool is_client;
protected:
std::function<void(const message &msg)> message_handler;
public:
std::function<void(const message &msg)> message_handler;
virtual void connected() = 0;
virtual void send_message(const message &msg) = 0;