mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
First commit
This commit is contained in:
90
pstruct/RakNet.php
Normal file
90
pstruct/RakNet.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?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(
|
||||
"double",
|
||||
"magic",
|
||||
),
|
||||
|
||||
0x05 => array(
|
||||
"magic",
|
||||
"byte",
|
||||
"special1",
|
||||
),
|
||||
|
||||
0x06 => array(
|
||||
"magic",
|
||||
"double",
|
||||
"byte",
|
||||
"short",
|
||||
),
|
||||
|
||||
0x07 => array(
|
||||
"magic",
|
||||
5,
|
||||
"short",
|
||||
"short",
|
||||
"int",
|
||||
"int",
|
||||
),
|
||||
|
||||
0x08 => array(
|
||||
"magic",
|
||||
"int",
|
||||
"int",
|
||||
5,
|
||||
"short",
|
||||
"short",
|
||||
"byte",
|
||||
),
|
||||
|
||||
0x1c => array(
|
||||
"double",
|
||||
"double",
|
||||
"magic",
|
||||
"string",
|
||||
),
|
||||
|
||||
0x1d => array(
|
||||
"double",
|
||||
"double",
|
||||
"magic",
|
||||
"string",
|
||||
),
|
||||
|
||||
0x84 => array(
|
||||
"byte",
|
||||
9,
|
||||
"int",
|
||||
"int",
|
||||
5,
|
||||
3,
|
||||
"byte",
|
||||
),
|
||||
|
||||
);
|
37
pstruct/packetName.php
Normal file
37
pstruct/packetName.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?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.
|
||||
|
||||
|
||||
*/
|
||||
|
||||
$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",
|
||||
0x1c => "ID_UNCONNECTED_PONG",
|
||||
0x1d => "ID_ADVERTISE_SYSTEM",
|
||||
|
||||
);
|
Reference in New Issue
Block a user