mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
* Apply new id naming * Fix failing CI on all features * Update changelog * Rename tf2 example to teamfortress2 * Fix typo in steamapp game names * Rename minecraft legacy versions * Apply CI node badge fix by Douile * Add/Update badge --------- Co-authored-by: GitHub Action <action@github.com>
8 lines
292 B
Rust
8 lines
292 B
Rust
use crate::protocols::gamespy;
|
|
use crate::protocols::gamespy::one::Response;
|
|
use crate::GDResult;
|
|
use std::net::{IpAddr, SocketAddr};
|
|
|
|
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response> {
|
|
gamespy::one::query(&SocketAddr::new(*address, port.unwrap_or(23000)), None)
|
|
}
|