mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Protocol] Valve: support app and dedicated app id
This commit is contained in:
parent
fe46359e47
commit
150bc1762e
48 changed files with 259 additions and 179 deletions
|
|
@ -3,7 +3,7 @@ use gamedig::games::tf2;
|
|||
|
||||
fn main() {
|
||||
let response = tf2::query("127.0.0.1", None); //or Some(27015), None is the default protocol port (which is 27015)
|
||||
match response {
|
||||
match response { // Result type, must check what it is...
|
||||
Err(error) => println!("Couldn't query, error: {}", error),
|
||||
Ok(r) => println!("{:#?}", r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue