mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Added Insurgency and Insurgency: Sandstorm implementation.
This commit is contained in:
parent
14abf3d1ab
commit
83bbd5d428
8 changed files with 210 additions and 12 deletions
10
examples/ins.rs
Normal file
10
examples/ins.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
use gamedig::games::ins;
|
||||
|
||||
fn main() {
|
||||
let response = ins::query("101.100.139.94", Some(27016));
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
}
|
||||
}
|
||||
10
examples/inss.rs
Normal file
10
examples/inss.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
use gamedig::games::inss;
|
||||
|
||||
fn main() {
|
||||
let response = inss::query("109.195.19.160", None); //The query port, not the server port
|
||||
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