Almost completed the valve protocol

This commit is contained in:
CosminPerRam 2022-10-16 02:42:17 +03:00
parent 8098136d09
commit c9eb725a51
6 changed files with 135 additions and 43 deletions

View file

@ -2,13 +2,9 @@
use gamedig::TF2;
fn main() {
let response = TF2::query("5.15.202.107", None);
let response = TF2::query("91.216.250.10", None);
match response {
Err(_) => println!("fuck"),
Ok(r) => {
println!("{:?}", r);
()
}
Err(error) => println!("Couldn't query, error: {}", error),
Ok(r) => println!("{:?}", r)
}
}