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

Method ping

3rdparty/libprocess/src/tests/benchmarks.cpp:237–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236private:
237 void ping(const UPID& from, const string& body)
238 {
239 if (!links.contains(from)) {
240 link(from);
241 links.insert(from);
242 }
243
244 send(from, "pong", body.c_str(), body.size());
245 }
246
247 hashset<UPID> links;
248};

Callers

nothing calls this directly

Calls 4

insertMethod · 0.80
sendFunction · 0.50
containsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected