PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
pocketmine\network\mcpe\PacketSender Interface Reference
+ Inheritance diagram for pocketmine\network\mcpe\PacketSender:
+ Collaboration diagram for pocketmine\network\mcpe\PacketSender:

Public Member Functions

 close (string $reason="unknown reason")
 
 send (string $payload, bool $immediate, ?int $receiptId)
 

Detailed Description

Definition at line 26 of file PacketSender.php.

Member Function Documentation

◆ close()

pocketmine\network\mcpe\PacketSender::close ( string  $reason = "unknown reason")

Closes the channel, terminating the connection.

Implemented in pocketmine\network\mcpe\raklib\RakLibPacketSender.

◆ send()

pocketmine\network\mcpe\PacketSender::send ( string  $payload,
bool  $immediate,
?int  $receiptId 
)

Pushes a packet into the channel to be processed.

Implemented in pocketmine\network\mcpe\raklib\RakLibPacketSender.


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