client registrar communication works

This commit is contained in:
2025-07-28 17:30:06 +02:00
parent 72703aa46b
commit 81649bf2fd
6 changed files with 91 additions and 23 deletions
+9 -1
View File
@@ -62,7 +62,15 @@ pub async fn handle_request(
.find(|elem| elem.map(|s| &s.net_id == &net_id)) // find if id exists
{
Some(registration) => registration,
None => {let _ = socket.send_to(&[ServerResponse::ID_DOESNT_EXIST as u8], src);
None => {match socket.send_to(&[ServerResponse::ID_DOESNT_EXIST as u8], src){
Ok(s) => {
#[cfg(debug_assertions)]
eprintln!("send {} bytes", s);
}
Err(e) => {
eprintln!("Error snding data: {}", e);
}
};
return;
},
}