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

Public Member Functions

 __construct (private int $mtuSize, private \Closure $sendDatagramCallback, private \Closure $onACK, private int $reliableWindowSize=512,)
 
 addEncapsulatedToQueue (EncapsulatedPacket $packet, bool $immediate=false)
 
 needsUpdate ()
 
 onACK (ACK $packet)
 
 onNACK (NACK $packet)
 
 sendQueue ()
 
 update ()
 

Detailed Description

Definition at line 33 of file SendReliabilityLayer.php.

Constructor & Destructor Documentation

◆ __construct()

raklib\generic\SendReliabilityLayer::__construct ( private int  $mtuSize,
private \Closure  $sendDatagramCallback,
private \Closure  $onACK,
private int  $reliableWindowSize = 512 
)

@phpstan-param int<Session::MIN_MTU_SIZE, max> $mtuSize @phpstan-param \Closure(Datagram) : void $sendDatagramCallback @phpstan-param \Closure(int) : void $onACK

Definition at line 84 of file SendReliabilityLayer.php.

Member Function Documentation

◆ addEncapsulatedToQueue()

raklib\generic\SendReliabilityLayer::addEncapsulatedToQueue ( EncapsulatedPacket  $packet,
bool  $immediate = false 
)

Definition at line 166 of file SendReliabilityLayer.php.

◆ needsUpdate()

raklib\generic\SendReliabilityLayer::needsUpdate ( )

Definition at line 253 of file SendReliabilityLayer.php.

◆ onACK()

raklib\generic\SendReliabilityLayer::onACK ( ACK  $packet)

Definition at line 221 of file SendReliabilityLayer.php.

◆ onNACK()

raklib\generic\SendReliabilityLayer::onNACK ( NACK  $packet)

Definition at line 242 of file SendReliabilityLayer.php.

◆ sendQueue()

raklib\generic\SendReliabilityLayer::sendQueue ( )

Definition at line 119 of file SendReliabilityLayer.php.

◆ update()

raklib\generic\SendReliabilityLayer::update ( )

Definition at line 262 of file SendReliabilityLayer.php.


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