MCPcopy Create free account
hub / github.com/attermann/microReticulum / onPingPacket

Function onPingPacket

test/test_rns_loopback/test_rns_loopback.cpp:84–90  ·  view source on GitHub ↗

Ping packet receive callback void(*)(const Bytes& data, const Packet& packet)

Source from the content-addressed store, hash-verified

82// Ping packet receive callback
83//void(*)(const Bytes& data, const Packet& packet)
84void onPingPacket(const RNS::Bytes& data, const RNS::Packet& packet) {
85 INFO("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
86 INFOF("onPingPacket: data: %s", data.toHex().c_str());
87 INFOF("onPingPacket: text: \"%s\"", data.toString().c_str());
88 //TRACEF("onPingPacket: %s", packet.debugString().c_str());
89 INFO("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
90}
91
92
93RNS::Reticulum reticulum({RNS::Type::NONE});

Callers

nothing calls this directly

Calls 2

toHexMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected