Desctiption-Docs
Some checks failed
CI / checks (push) Failing after 1m51s

This commit is contained in:
Alex Emmet 2026-07-02 20:21:12 +02:00
commit 5bfcccc056
5 changed files with 36 additions and 5 deletions

View file

@ -98,8 +98,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Server listening on {}", host.local_addr());
while let Some(conn) = host.accept().await? {
let desc = conn
.description
.as_deref()
.unwrap_or("(no description)");
println!(
"\n--- New authenticated connection (version {}) ---",
"\n--- New connection (version {}, description: {desc}) ---",
conn.version
);
println!("Client ID: {}", conn.client_id);