added message class for message based communication over sockets

This commit is contained in:
Kjistóf 2016-11-19 17:24:39 +01:00
parent c81126ad91
commit 80cc602317
2 changed files with 22 additions and 0 deletions

8
message.cpp Normal file
View File

@ -0,0 +1,8 @@
#include "message.h"
message::~message() {}

14
message.h Normal file
View File

@ -0,0 +1,14 @@
#pragma once
#include <boost/asio.hpp>
class message
{
public:
virtual void send(boost::asio::ip::tcp::socket&) = 0;
virtual void receive(boost::asio::ip::tcp::socket&) = 0;
virtual ~message();
};