mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-10 15:41:05 +00:00
9 lines
331 B
Rust
9 lines
331 B
Rust
use crate::protocols::quake;
|
|
use crate::protocols::quake::two::Player;
|
|
use crate::protocols::quake::Response;
|
|
use crate::GDResult;
|
|
use std::net::{IpAddr, SocketAddr};
|
|
|
|
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response<Player>> {
|
|
quake::two::query(&SocketAddr::new(*address, port.unwrap_or(27910)), None)
|
|
}
|