1 #include <boost/asio.hpp>
10 virtual size_t readsome(boost::asio::ip::tcp::socket& socket,
char* buffer,
size_t length) = 0;
11 virtual size_t readsome(boost::asio::ip::tcp::socket& socket,
const std::shared_ptr<char>& buffer,
size_t length,
size_t offset) = 0;
12 virtual size_t writesome(boost::asio::ip::tcp::socket& socket,
const char* buffer,
size_t length) = 0;
13 virtual size_t writesome(boost::asio::ip::tcp::socket& socket,
const std::shared_ptr<const char>& buffer,
size_t length,
size_t offset) = 0;