| 73 | } |
| 74 | |
| 75 | void send(boost::asio::ip::tcp::socket& socket, std::shared_ptr<Buf> const& buf) { |
| 76 | boost::system::error_code ec; |
| 77 | socket.send(boost::asio::const_buffer(buf->data, buf->size), 0, ec); |
| 78 | this->sendCompletionHandler(ec); |
| 79 | } |
| 80 | void send(boost::asio::ip::udp::socket& socket, std::shared_ptr<Buf> const& buf) { |
| 81 | boost::system::error_code ec; |
| 82 | socket.send(boost::asio::const_buffer(buf->data, buf->size), 0, ec); |
no test coverage detected