| 64 | }; |
| 65 | |
| 66 | void sendCompletionHandler(boost::system::error_code const& ec) { |
| 67 | if (ec) { |
| 68 | callback(ec); |
| 69 | } else { |
| 70 | ++iter; |
| 71 | sendNext(); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void send(boost::asio::ip::tcp::socket& socket, std::shared_ptr<Buf> const& buf) { |
| 76 | boost::system::error_code ec; |