Skip to content

NetherNetProcess 5.46.0 ​

final class · pocketmine\network\mcpe\nethernet\NetherNetProcess · source

The pm-nethernet bridge child process. Its stdout and stderr go to a log file; its stdin is a pipe that is closed when the server stops (the bridge exits when stdin is closed, so it never outlives a crashed server).

Methods ​

__construct() ​

php
public function __construct(string $binary, array $arguments, string $token, string $logFile)

close() ​

php
public function close() : void

Releases the process handle. Only call this once the process has exited or was terminated.

getExitCode() ​

php
public function getExitCode() : int

getLogTail() ​

php
public function getLogTail() : string

Returns the output the bridge wrote since it was started (at most the last 2 KB).

isRunning() ​

php
public function isRunning() : bool

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

Asks the bridge to exit by closing its stdin, then kills it if it does not exit within two seconds.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.