Session.addToQueue

Adds an EncapsulatedPacket to the queue, and sets its messageIndex, orderIndex, and any other values depending on the Reliability.

If the packet's total length is longer than the MTU (Maximum Transport Unit) then the packet will be split into smaller chunks, which each will be added to the queue.

class Session
void
addToQueue
(
EncapsulatedPacket pk
,
in bool immediate = false
)

Parameters

pk

The EncapsulatedPacket to be added

immediate
Type: bool

If the packet should skip the queue and be sent immediately.

Meta