MCPcopy Create free account
hub / github.com/apache/mesos / send

Function send

3rdparty/libprocess/src/process.cpp:1781–1799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779Future<Nothing> _send(Encoder* encoder, Socket socket);
1780
1781void send(Encoder* encoder, Socket socket)
1782{
1783 _send(encoder, socket)
1784 .then([socket] {
1785 // Continue sending until this socket has no more
1786 // queued outgoing messages.
1787 return process::loop(
1788 None(),
1789 [=] { return socket_manager->next(socket); },
1790 [=](Encoder* encoder) -> Future<ControlFlow<Nothing>> {
1791 if (encoder == nullptr) {
1792 return Break();
1793 }
1794
1795 return _send(encoder, socket)
1796 .then([]() -> ControlFlow<Nothing> { return Continue(); });
1797 });
1798 });
1799}
1800
1801
1802Future<Nothing> _send(Encoder* encoder, Socket socket)

Callers 3

link_connectMethod · 0.70
sendMethod · 0.70
send_connectMethod · 0.70

Calls 7

_sendFunction · 0.85
loopFunction · 0.85
NoneClass · 0.85
BreakFunction · 0.50
ContinueClass · 0.50
thenMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected