mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
feat: initial http and eco support
This commit is contained in:
parent
bd3727d7fe
commit
285bd7fe6e
8 changed files with 263 additions and 0 deletions
10
crates/lib/examples/test_eco.rs
Normal file
10
crates/lib/examples/test_eco.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use gamedig::games::eco;
|
||||
use std::net::IpAddr;
|
||||
use std::str::FromStr;
|
||||
|
||||
fn main() {
|
||||
let ip = IpAddr::from_str("142.132.154.69").unwrap();
|
||||
let port = 31111;
|
||||
let r = eco::query(&ip, Some(port));
|
||||
println!("{:#?}", r);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue