| 672 | } |
| 673 | |
| 674 | Future<int> sendTo(uint8_t const* begin, uint8_t const* end, NetworkAddress const& peer) override { |
| 675 | ++g_net2->countUDPWrites; |
| 676 | ReadPromise p("N2_UDPWriteError", id); |
| 677 | auto res = p.getFuture(); |
| 678 | udp::endpoint toEndpoint = udpEndpoint(peer); |
| 679 | socket.async_send_to(boost::asio::const_buffer(begin, end - begin), toEndpoint, std::move(p)); |
| 680 | return res; |
| 681 | } |
| 682 | |
| 683 | void bind(NetworkAddress const& addr) override { |
| 684 | boost::system::error_code ec; |
nothing calls this directly
no test coverage detected