PocketMine-MP 5.21.1 git-2ff647079265e7c600203af4fd902b15e99d49a4
raklib\generic\ReceiveReliabilityLayer Class Reference
+ Collaboration diagram for raklib\generic\ReceiveReliabilityLayer:

Public Member Functions

 __construct (private \Logger $logger, private \Closure $onRecv, private \Closure $sendPacket, private int $maxSplitPacketPartCount=PHP_INT_MAX, private int $maxConcurrentSplitPackets=PHP_INT_MAX)
 
 needsUpdate ()
 
 onDatagram (Datagram $packet)
 
 update ()
 

Static Public Attributes

static int $WINDOW_SIZE = 2048
 

Detailed Description

Definition at line 29 of file ReceiveReliabilityLayer.php.

Constructor & Destructor Documentation

◆ __construct()

raklib\generic\ReceiveReliabilityLayer::__construct ( private \Logger  $logger,
private \Closure  $onRecv,
private \Closure  $sendPacket,
private int  $maxSplitPacketPartCount = PHP_INT_MAX,
private int  $maxConcurrentSplitPackets = PHP_INT_MAX 
)

@phpstan-param positive-int $maxSplitPacketPartCount @phpstan-param \Closure(EncapsulatedPacket) : void $onRecv @phpstan-param \Closure(AcknowledgePacket) : void $sendPacket

Definition at line 62 of file ReceiveReliabilityLayer.php.

Member Function Documentation

◆ needsUpdate()

raklib\generic\ReceiveReliabilityLayer::needsUpdate ( )

Definition at line 276 of file ReceiveReliabilityLayer.php.

◆ onDatagram()

raklib\generic\ReceiveReliabilityLayer::onDatagram ( Datagram  $packet)

Definition at line 212 of file ReceiveReliabilityLayer.php.

◆ update()

raklib\generic\ReceiveReliabilityLayer::update ( )

Definition at line 249 of file ReceiveReliabilityLayer.php.

Member Data Documentation

◆ $WINDOW_SIZE

int raklib\generic\ReceiveReliabilityLayer::$WINDOW_SIZE = 2048
static

Definition at line 31 of file ReceiveReliabilityLayer.php.


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