phpdoc armageddon for master, pass 1

This commit is contained in:
Dylan K. Taylor
2020-01-22 11:55:03 +00:00
parent 4bae3baa74
commit 67bcc1c0fb
397 changed files with 0 additions and 5391 deletions

View File

@ -35,37 +35,25 @@ interface AdvancedNetworkInterface extends NetworkInterface{
/**
* Prevents packets received from the IP address getting processed for the given timeout.
*
* @param string $address
* @param int $timeout Seconds
*/
public function blockAddress(string $address, int $timeout = 300) : void;
/**
* Unblocks a previously-blocked address.
*
* @param string $address
*/
public function unblockAddress(string $address) : void;
/**
* @param Network $network
*/
public function setNetwork(Network $network) : void;
/**
* Sends a raw payload to the network interface, bypassing any sessions.
*
* @param string $address
* @param int $port
* @param string $payload
*/
public function sendRawPacket(string $address, int $port, string $payload) : void;
/**
* 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.
*
* @param string $regex
*/
public function addRawPacketFilter(string $regex) : void;
}