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

Function client_packet_received

examples/link_native/src/main.cpp:171–176  ·  view source on GitHub ↗

When a packet is received over the link, we simply print out the data.

Source from the content-addressed store, hash-verified

169// When a packet is received over the link, we
170// simply print out the data.
171void client_packet_received(const RNS::Bytes& message, const RNS::Packet& packet) {
172 std::string text = message.toString();
173 RNS::logf(RNS::LOG_NOTICE, "Received data on the link: %s", text.c_str());
174 printf("> ");
175 fflush(stdout);
176}
177
178void client_loop() {
179 // Wait for the link to become active

Callers

nothing calls this directly

Calls 2

logfFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected