mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
* [Crate] Replace IpAddr with SocketAddr in protocols * [Crate] Remove usage of address.to_string in socket * [Crate] Update CHANGELOG.md
8 lines
292 B
Rust
8 lines
292 B
Rust
use std::net::{IpAddr, SocketAddr};
|
|
use crate::protocols::gamespy;
|
|
use crate::protocols::gamespy::one::Response;
|
|
use crate::GDResult;
|
|
|
|
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response> {
|
|
gamespy::one::query(&SocketAddr::new(*address, port.unwrap_or(23000)), None)
|
|
}
|