When a packet is received over the link, we simply print out the data.
| 169 | // When a packet is received over the link, we |
| 170 | // simply print out the data. |
| 171 | void 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 | |
| 178 | void client_loop() { |
| 179 | // Wait for the link to become active |