PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
addRawPacketFilter (string $regex) | |
blockAddress (string $address, int $timeout=300) | |
sendRawPacket (string $address, int $port, string $payload) | |
setName (string $name) | |
setNetwork (Network $network) | |
shutdown () | |
start () | |
tick () | |
unblockAddress (string $address) | |
Advanced network interfaces have some additional capabilities, such as being able to ban addresses and process raw packets.
Definition at line 33 of file AdvancedNetworkInterface.php.
pocketmine\network\AdvancedNetworkInterface::addRawPacketFilter | ( | string | $regex | ) |
Adds a regex filter for raw packets to this network interface. This filter should be used to check validity of raw packets before relaying them to the main thread.
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, and pocketmine\network\query\DedicatedQueryNetworkInterface.
pocketmine\network\AdvancedNetworkInterface::blockAddress | ( | string | $address, |
int | $timeout = 300 ) |
Prevents packets received from the IP address getting processed for the given timeout.
int | $timeout | Seconds |
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, and pocketmine\network\query\DedicatedQueryNetworkInterface.
pocketmine\network\AdvancedNetworkInterface::sendRawPacket | ( | string | $address, |
int | $port, | ||
string | $payload ) |
Sends a raw payload to the network interface, bypassing any sessions.
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, and pocketmine\network\query\DedicatedQueryNetworkInterface.
|
inherited |
Gracefully shuts down the network interface.
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, pocketmine\network\query\DedicatedQueryNetworkInterface, and pocketmine\network\upnp\UPnPNetworkInterface.
|
inherited |
Performs actions needed to start the interface after it is registered.
NetworkInterfaceStartException |
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, pocketmine\network\query\DedicatedQueryNetworkInterface, and pocketmine\network\upnp\UPnPNetworkInterface.
|
inherited |
Called every tick to process events on the interface.
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, pocketmine\network\query\DedicatedQueryNetworkInterface, and pocketmine\network\upnp\UPnPNetworkInterface.
pocketmine\network\AdvancedNetworkInterface::unblockAddress | ( | string | $address | ) |
Unblocks a previously-blocked address.
Implemented in pocketmine\network\mcpe\raklib\RakLibInterface, and pocketmine\network\query\DedicatedQueryNetworkInterface.