void send_client() { std::shared_ptr<string> message = std::make_shared<string>("CLIENT " + to_string(id) + "\n"); tcp_socket->async_send(ba::buffer(*message), boost::bind(packet_sent, _1, _2, this, message)); }
void send_report(string report) { std::shared_ptr<string> message = std::make_shared<string>(report); tcp_socket->async_send(ba::buffer(*message), boost::bind(packet_sent, _1, _2, this, message)); }