mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
New packets and fields
This commit is contained in:
@ -27,55 +27,57 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
$pstruct = array(
|
||||
0x02 => array(
|
||||
"double",
|
||||
"double", //Ping ID
|
||||
"magic",
|
||||
),
|
||||
|
||||
0x05 => array(
|
||||
"magic",
|
||||
"byte",
|
||||
"special1",
|
||||
"byte", //Protocol Version
|
||||
"special1", //MTU Size Null Lenght
|
||||
),
|
||||
|
||||
0x06 => array(
|
||||
"magic",
|
||||
8,
|
||||
"byte",
|
||||
"short",
|
||||
8, //Server GUID
|
||||
"byte", //Server Security
|
||||
"short", //MTU Size
|
||||
),
|
||||
|
||||
0x07 => array(
|
||||
"magic",
|
||||
5,
|
||||
"short",
|
||||
"short",
|
||||
8,
|
||||
5, //Security Cookie (idk why it's sent here)
|
||||
"short", //Server UDP Port
|
||||
"short", //MTU Size
|
||||
8, //Client GUID
|
||||
),
|
||||
|
||||
0x08 => array(
|
||||
"magic",
|
||||
8,
|
||||
5,
|
||||
8, //Server GUID
|
||||
"short", //Client UDP Port
|
||||
"short", //MTU Size
|
||||
"byte", //Security
|
||||
),
|
||||
|
||||
0x09 => array(
|
||||
8,
|
||||
"double",
|
||||
"byte",
|
||||
0x1a => array(
|
||||
"byte", //Server Version
|
||||
"magic",
|
||||
8, //Server GUID
|
||||
),
|
||||
|
||||
0x1c => array(
|
||||
"double",
|
||||
8,
|
||||
"double", //Ping ID
|
||||
8, //Server ID
|
||||
"magic",
|
||||
"string",
|
||||
"string", //Data
|
||||
),
|
||||
|
||||
0x1d => array(
|
||||
"double",
|
||||
8,
|
||||
"double", //Ping ID
|
||||
8, //Server ID
|
||||
"magic",
|
||||
"string",
|
||||
"string", //Data
|
||||
),
|
||||
|
||||
0x84 => array(
|
||||
|
@ -26,14 +26,14 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
*/
|
||||
|
||||
$packetName = array(
|
||||
0x02 => "ID_UNCONNECTED_PING_OPEN_CONNECTIONS",
|
||||
0x05 => "ID_OPEN_CONNECTION_REQUEST_1",
|
||||
0x06 => "ID_OPEN_CONNECTION_REPLY_1",
|
||||
0x07 => "ID_OPEN_CONNECTION_REQUEST_2",
|
||||
0x08 => "ID_OPEN_CONNECTION_REPLY_2",
|
||||
0x09 => "ID_CONNECTION_REQUEST",
|
||||
0x1c => "ID_UNCONNECTED_PONG",
|
||||
0x1d => "ID_ADVERTISE_SYSTEM",
|
||||
0x84 => "Unknown",
|
||||
0xc0 => "Unknown",
|
||||
0x02 => "ID_UNCONNECTED_PING_OPEN_CONNECTIONS", //RakNet
|
||||
0x05 => "ID_OPEN_CONNECTION_REQUEST_1", //RakNet
|
||||
0x06 => "ID_OPEN_CONNECTION_REPLY_1", //RakNet
|
||||
0x07 => "ID_OPEN_CONNECTION_REQUEST_2", //RakNet
|
||||
0x08 => "ID_OPEN_CONNECTION_REPLY_2", //RakNet
|
||||
0x1a => "ID_INCOMPATIBLE_PROTOCOL_VERSION", //RakNet
|
||||
0x1c => "ID_UNCONNECTED_PONG", //RakNet
|
||||
0x1d => "ID_ADVERTISE_SYSTEM", //RakNet
|
||||
0x84 => "ID_RESERVED_7", //Minecraft Implementation
|
||||
0xc0 => "Unknown", //Minecraft Implementation
|
||||
);
|
Reference in New Issue
Block a user