|
PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
|
Collaboration diagram for pocketmine\console\ConsoleReaderChildProcessUtils:Static Public Member Functions | |
| static | createMessage (string $line, int &$counter) |
| static | parseMessage (string $message, int &$counter) |
Public Attributes | |
| const | TOKEN_DELIMITER = ":" |
| const | TOKEN_HASH_ALGO = "xxh3" |
Definition at line 31 of file ConsoleReaderChildProcessUtils.php.
|
static |
Creates an IPC message to transmit a user's input command to the parent process.
Unfortunately we can't currently provide IPC pipes other than stdout/stderr to subprocesses on Windows, so this adds a hash of the user input (with a counter as salt) to prevent unintended process output (like error messages) from being treated as user input.
Definition at line 46 of file ConsoleReaderChildProcessUtils.php.
|
static |
Extracts a command from an IPC message from the console reader subprocess. Returns the user's input command, or null if this isn't a user input.
Definition at line 56 of file ConsoleReaderChildProcessUtils.php.
| const pocketmine\console\ConsoleReaderChildProcessUtils::TOKEN_DELIMITER = ":" |
Definition at line 32 of file ConsoleReaderChildProcessUtils.php.
| const pocketmine\console\ConsoleReaderChildProcessUtils::TOKEN_HASH_ALGO = "xxh3" |
Definition at line 33 of file ConsoleReaderChildProcessUtils.php.