|
|
| __construct (Server $server) |
| |
| | setNetwork (Network $network) |
| |
| | process () |
| |
| | closeSession ($identifier, $reason) |
| |
| | close (Player $player, $reason="unknown reason") |
| |
|
| shutdown () |
| |
|
| emergencyShutdown () |
| |
| | openSession ($identifier, $address, $port, $clientID) |
| |
| | handleEncapsulated ($identifier, EncapsulatedPacket $packet, $flags) |
| |
| | blockAddress ($address, $timeout=300) |
| |
|
| unblockAddress ($address) |
| |
| | handleRaw ($address, $port, $payload) |
| |
| | sendRawPacket ($address, $port, $payload) |
| |
| | notifyACK ($identifier, $identifierACK) |
| |
| | setName ($name) |
| |
|
| setPortCheck ($name) |
| |
| | handleOption ($name, $value) |
| |
| | putPacket (Player $player, DataPacket $packet, $needACK=false, $immediate=false) |
| |
| blockAddress |
( |
|
$address, |
|
|
|
$timeout = 300 |
|
) |
| |
| close |
( |
Player |
$player, |
|
|
|
$reason = "unknown reason" |
|
) |
| |
| closeSession |
( |
|
$identifier, |
|
|
|
$reason |
|
) |
| |
- Parameters
-
| string | $identifier | |
| EncapsulatedPacket | $packet | |
| int | $flags | |
Implements ServerInstance.
| handleOption |
( |
|
$option, |
|
|
|
$value |
|
) |
| |
| handleRaw |
( |
|
$address, |
|
|
|
$port, |
|
|
|
$payload |
|
) |
| |
- Parameters
-
| string | $address | |
| int | $port | |
| string | $payload | |
Implements ServerInstance.
| notifyACK |
( |
|
$identifier, |
|
|
|
$identifierACK |
|
) |
| |
- Parameters
-
| string | $identifier | |
| int | $identifierACK | |
Implements ServerInstance.
| openSession |
( |
|
$identifier, |
|
|
|
$address, |
|
|
|
$port, |
|
|
|
$clientID |
|
) |
| |
- Parameters
-
| string | $identifier | |
| string | $address | |
| int | $port | |
| string | int | $clientID | |
Implements ServerInstance.
| putPacket |
( |
Player |
$player, |
|
|
DataPacket |
$packet, |
|
|
|
$needACK = false, |
|
|
|
$immediate = false |
|
) |
| |
Sends a DataPacket to the interface, returns an unique identifier for the packet if $needACK is true
- Parameters
-
| Player | $player | |
| DataPacket | $packet | |
| bool | $needACK | |
| bool | $immediate | |
- Returns
- int
Implements SourceInterface.
| sendRawPacket |
( |
|
$address, |
|
|
|
$port, |
|
|
|
$payload |
|
) |
| |
The documentation for this class was generated from the following file:
- src/pocketmine/network/RakLibInterface.php