mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Modularized reusable structs and changed files structure a bit
This commit is contained in:
parent
faaedf44f0
commit
9df4bddc09
19 changed files with 279 additions and 1063 deletions
|
|
@ -2,7 +2,7 @@
|
|||
use gamedig::games::tf2;
|
||||
|
||||
fn main() {
|
||||
let response = tf2::query("cosminperram.com", None); //or Some(27015), None is the default protocol port (which is 27015)
|
||||
let response = tf2::query("91.216.250.10", None); //or Some(27015), None is the default protocol port (which is 27015)
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue