mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-09 15:11:07 +00:00
* Initial files + unreal tournament * Fix master_querant * Split by delimiter and collect into hashmap * Furter port to accept more packets * Improve getting the server's values * Some initial players parsing * Players parsing * Add error handling * Add some more fields * Add Battlefield 1942 support. * Add query_vars and some docs
10 lines
276 B
Rust
10 lines
276 B
Rust
use crate::GDResult;
|
|
use crate::protocols::gamespy;
|
|
use crate::protocols::gamespy::Response;
|
|
|
|
pub fn query(address: &str, port: Option<u16>) -> GDResult<Response> {
|
|
gamespy::one::query(address, match port {
|
|
None => 23000,
|
|
Some(port) => port
|
|
}, None)
|
|
}
|