mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
[Protocol] Use string literals to better show what the response header bytes mean
This commit is contained in:
parent
a0681f4259
commit
3a9bd77efe
3 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ impl QuakeClient for QuakeOne {
|
|||
}
|
||||
|
||||
fn get_response_header<'a>() -> &'a [u8] {
|
||||
&[0x6E]
|
||||
"n".as_bytes()
|
||||
}
|
||||
|
||||
fn parse_player_string(mut data: Iter<&str>) -> GDResult<Self::Player> {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ impl QuakeClient for QuakeThree {
|
|||
}
|
||||
|
||||
fn get_response_header<'a>() -> &'a [u8] {
|
||||
&[0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6F, 0x6E, 0x73, 0x65, 0x0A]
|
||||
"statusResponse\n".as_bytes()
|
||||
}
|
||||
|
||||
fn parse_player_string(data: Iter<&str>) -> GDResult<Self::Player> {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ impl QuakeClient for QuakeTwo {
|
|||
}
|
||||
|
||||
fn get_response_header<'a>() -> &'a [u8] {
|
||||
&[0x70, 0x72, 0x69, 0x6E, 0x74, 0x0A]
|
||||
"print\n".as_bytes()
|
||||
}
|
||||
|
||||
fn parse_player_string(mut data: Iter<&str>) -> GDResult<Self::Player> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue