Documentation

ReceiveReliabilityLayer
in package

Table of Contents

$WINDOW_SIZE  : int
$ACKQueue  : array<string|int, int>
$highestSeqNumber  : int
$logger  : Logger
$maxConcurrentSplitPackets  : int
$maxSplitPacketPartCount  : int
$NACKQueue  : array<string|int, int>
$onRecv  : Closure
$receiveOrderedIndex  : array<string|int, int>
$receiveOrderedPackets  : array<string|int, array<string|int, EncapsulatedPacket>>
$receiveSequencedHighestIndex  : array<string|int, int>
$reliableWindow  : array<string|int, bool>
$reliableWindowEnd  : int
$reliableWindowStart  : int
$sendPacket  : Closure
$splitPackets  : array<string|int, array<string|int, \raklib\protocol\EncapsulatedPacket|null>>
$windowEnd  : int
$windowStart  : int
__construct()  : mixed
needsUpdate()  : bool
onDatagram()  : void
update()  : void
handleEncapsulatedPacket()  : void
handleEncapsulatedPacketRoute()  : void
handleSplit()  : null|EncapsulatedPacket
Processes a split part of an encapsulated packet.

Properties

$splitPackets

private array<string|int, array<string|int, \raklib\protocol\EncapsulatedPacket|null>> $splitPackets = []

Methods

__construct()

public __construct(Logger $logger, Closure $onRecv, Closure $sendPacket[, int $maxSplitPacketPartCount = PHP_INT_MAX ][, int $maxConcurrentSplitPackets = PHP_INT_MAX ]) : mixed
Parameters
$logger : Logger
$onRecv : Closure
$sendPacket : Closure
$maxSplitPacketPartCount : int = PHP_INT_MAX
$maxConcurrentSplitPackets : int = PHP_INT_MAX
Tags
phpstan-param

positive-int $maxSplitPacketPartCount

phpstan-param

\Closure(EncapsulatedPacket) : void $onRecv

phpstan-param

\Closure(AcknowledgePacket) : void $sendPacket

Return values
mixed

Search results