mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
121 lines
1.7 KiB
PHP
121 lines
1.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
|
|
-
|
|
/ \
|
|
/ \
|
|
/ POCKET \
|
|
/ MINECRAFT PHP \
|
|
|\ @shoghicp /|
|
|
|. \ / .|
|
|
| .. \ / .. |
|
|
| .. | .. |
|
|
| .. | .. |
|
|
\ | /
|
|
\ | /
|
|
\ | /
|
|
\ | /
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
|
|
*/
|
|
|
|
$pstruct = array(
|
|
0x02 => array(
|
|
"long", //Ping ID
|
|
"magic",
|
|
),
|
|
|
|
0x05 => array(
|
|
"magic",
|
|
"byte", //Protocol Version
|
|
"special1", //MTU Size Null Lenght
|
|
),
|
|
|
|
0x06 => array(
|
|
"magic",
|
|
"long", //Server GUID
|
|
"byte", //Server Security
|
|
"short", //MTU Size
|
|
),
|
|
|
|
0x07 => array(
|
|
"magic",
|
|
5, //Security Cookie (idk why it's sent here)
|
|
"short", //Server UDP Port
|
|
"short", //MTU Size
|
|
"long", //Client GUID
|
|
),
|
|
|
|
0x08 => array(
|
|
"magic",
|
|
"long", //Server GUID
|
|
"short", //Client UDP Port
|
|
"short", //MTU Size
|
|
"byte", //Security
|
|
),
|
|
|
|
0x1a => array(
|
|
"byte", //Server Version
|
|
"magic",
|
|
"long", //Server GUID
|
|
),
|
|
|
|
0x1c => array(
|
|
"long", //Ping ID
|
|
"long", //Server GUID
|
|
"magic",
|
|
"string", //Data
|
|
),
|
|
|
|
0x1d => array(
|
|
"long", //Ping ID
|
|
"long", //Server GUID
|
|
"magic",
|
|
"string", //Data
|
|
),
|
|
|
|
0x80 => array(
|
|
"itriad",
|
|
"ubyte",
|
|
"customData",
|
|
),
|
|
|
|
0x84 => array(
|
|
"itriad",
|
|
"ubyte",
|
|
"customData",
|
|
),
|
|
|
|
0x88 => array(
|
|
"itriad",
|
|
"ubyte",
|
|
"customData",
|
|
),
|
|
|
|
0x8c => array(
|
|
"itriad",
|
|
"ubyte",
|
|
"customData",
|
|
),
|
|
|
|
0xa0 => array(
|
|
"short",
|
|
"bool",
|
|
"itriad",
|
|
"special1",
|
|
),
|
|
|
|
0xc0 => array(
|
|
"short",
|
|
"bool",
|
|
"itriad",
|
|
"special1",
|
|
),
|
|
|
|
); |