PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
|
Public Member Functions | |
__construct (private \Logger $logger, private string $ip, private int $port) | |
setName (string $name) | |
shutdown () | |
start () | |
tick () | |
Definition at line 30 of file UPnPNetworkInterface.php.
pocketmine\network\upnp\UPnPNetworkInterface::__construct | ( | private \Logger | $logger, |
private string | $ip, | ||
private int | $port | ||
) |
Definition at line 33 of file UPnPNetworkInterface.php.
pocketmine\network\upnp\UPnPNetworkInterface::setName | ( | string | $name | ) |
Implements pocketmine\network\NetworkInterface.
Definition at line 57 of file UPnPNetworkInterface.php.
pocketmine\network\upnp\UPnPNetworkInterface::shutdown | ( | ) |
Gracefully shuts down the network interface.
Implements pocketmine\network\NetworkInterface.
Definition at line 65 of file UPnPNetworkInterface.php.
pocketmine\network\upnp\UPnPNetworkInterface::start | ( | ) |
Performs actions needed to start the interface after it is registered.
NetworkInterfaceStartException |
Implements pocketmine\network\NetworkInterface.
Definition at line 45 of file UPnPNetworkInterface.php.
References pocketmine\utils\Internet\getInternalIP(), pocketmine\network\upnp\UPnP\getServiceUrl(), and pocketmine\network\upnp\UPnP\portForward().
pocketmine\network\upnp\UPnPNetworkInterface::tick | ( | ) |
Called every tick to process events on the interface.
Implements pocketmine\network\NetworkInterface.
Definition at line 61 of file UPnPNetworkInterface.php.