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

Method send

flow/Net2.actor.cpp:666–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 }
665
666 Future<int> send(uint8_t const* begin, uint8_t const* end) override {
667 ++g_net2->countUDPWrites;
668 ReadPromise p("N2_UDPWriteError", id);
669 auto res = p.getFuture();
670 socket.async_send(boost::asio::const_buffer(begin, end - begin), std::move(p));
671 return res;
672 }
673
674 Future<int> sendTo(uint8_t const* begin, uint8_t const* end, NetworkAddress const& peer) override {
675 ++g_net2->countUDPWrites;

Callers 8

operator()Method · 0.45
operator()Method · 0.45
actionMethod · 0.45
doAcceptHandshakeMethod · 0.45
doConnectHandshakeFunction · 0.45
operator()Method · 0.45
Net2.actor.cppFile · 0.45

Calls 2

moveFunction · 0.85
getFutureMethod · 0.45

Tested by

no test coverage detected