When a client establishes a link to our server destination, this function will be called with a reference to the link.
| 70 | // destination, this function will be called with |
| 71 | // a reference to the link. |
| 72 | void client_connected(RNS::Link& link) { |
| 73 | RNS::log("Client connected"); |
| 74 | link.set_link_closed_callback(client_disconnected); |
| 75 | link.set_packet_callback(server_packet_received); |
| 76 | latest_client_link = link; |
| 77 | } |
| 78 | |
| 79 | void server_loop(RNS::Destination& destination) { |
| 80 | // Let the user know that everything is ready |
nothing calls this directly
no test coverage detected