MCPcopy Create free account
hub / github.com/apple/foundationdb / sendTo

Method sendTo

flow/Net2.actor.cpp:674–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

udpEndpointFunction · 0.85
moveFunction · 0.85
getFutureMethod · 0.45

Tested by

no test coverage detected