PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\network\RakLibInterface Class Reference
+ Inheritance diagram for pocketmine\network\RakLibInterface:
+ Collaboration diagram for pocketmine\network\RakLibInterface:

Public Member Functions

 __construct (Server $server)
 
 doTick ()
 
 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)
 
 handleRaw ($address, $port, $payload)
 
 putRaw ($address, $port, $payload)
 
 notifyACK ($identifier, $identifierACK)
 
 setName ($name)
 
 setPortCheck ($name)
 
 handleOption ($name, $value)
 
 getUploadUsage ()
 
 getDownloadUsage ()
 
 putPacket (Player $player, DataPacket $packet, $needACK=false, $immediate=false)
 
 registerPacket ($id, $class)
 

Detailed Description

Definition at line 86 of file RakLibInterface.php.

Member Function Documentation

pocketmine\network\RakLibInterface::close ( Player  $player,
  $reason = "unknown reason" 
)

Terminates the connection

Parameters
Player$player
string$reason

Implements pocketmine\network\SourceInterface.

Definition at line 152 of file RakLibInterface.php.

pocketmine\network\RakLibInterface::process ( )
Returns
bool

Implements pocketmine\network\SourceInterface.

Definition at line 129 of file RakLibInterface.php.

pocketmine\network\RakLibInterface::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 pocketmine\network\SourceInterface.

Definition at line 239 of file RakLibInterface.php.

pocketmine\network\RakLibInterface::setName (   $name)
Parameters
string$name

Implements pocketmine\network\SourceInterface.

Definition at line 215 of file RakLibInterface.php.


The documentation for this class was generated from the following file: