23 #ifndef INCLUDED_TCP_CONNECTION_H
24 #define INCLUDED_TCP_CONNECTION_H
26 #include <boost/array.hpp>
27 #include <boost/asio.hpp>
38 boost::asio::ip::tcp::socket d_socket;
39 boost::array<char, 10000> d_buf;
40 std::string d_message;
48 static sptr make(boost::asio::io_service& io_service);
50 boost::asio::ip::tcp::socket&
socket() {
return d_socket; };
54 void handle_read(
const boost::system::error_code& error,
size_t bytes_transferred);
55 void handle_write(
const boost::system::error_code& error,
size_t bytes_transferred) { }