mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Added socket timeout capability and reduced PACKET_SIZE to 1400 as specified from protocol
This commit is contained in:
parent
d3b71fccf6
commit
caa7329a68
21 changed files with 125 additions and 49 deletions
|
|
@ -6,7 +6,7 @@ pub fn query(address: &str, port: Option<u16>) -> GDResult<game::Response> {
|
|||
let valve_response = valve::query(address, match port {
|
||||
None => 27015,
|
||||
Some(port) => port
|
||||
}, SteamID::L4D.app(), None)?;
|
||||
}, SteamID::L4D.as_app(), None, None)?;
|
||||
|
||||
Ok(game::Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue