Skip to content

RakLibPacketSender ​

class · pocketmine\network\mcpe\raklib\RakLibPacketSender · source

Implements TransportAwarePacketSender

Methods ​

__construct() ​

php
public function __construct(int $sessionId, \pocketmine\network\mcpe\raklib\RakLibInterface $handler)

close() ​

php
public function close(string $reason = "unknown reason") : void

getPeerPublicKey() 5.46.0 ​

php
public function getPeerPublicKey() : ?string

getTransportName() 5.46.0 ​

php
public function getTransportName() : string

isTransportEncrypted() 5.46.0 ​

php
public function isTransportEncrypted() : bool

send() ​

php
public function send(string $payload, bool $immediate, ?int $receiptId) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.