mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Almost completed the valve protocol
This commit is contained in:
parent
8098136d09
commit
c9eb725a51
6 changed files with 135 additions and 43 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue