cpp11chat/message.h

21 lines
345 B
C
Raw Normal View History

#pragma once
#include <boost/asio.hpp>
class message
{
protected:
virtual std::string get_message_length() = 0;
virtual std::string get_message() = 0;
2016-11-19 23:18:14 +00:00
virtual void process_data(std::string&) = 0;
public:
void send(boost::asio::ip::tcp::socket&);
2016-11-19 23:18:14 +00:00
void receive(boost::asio::ip::tcp::socket&);
virtual ~message();
};