Method ReleaseOrResumePackets
ReleaseOrResumePackets(NetworkPipelineContext)
Acknowledge the reception of packets which have been sent. The reliability shared context/state is updated when packets are received from the other end of the connection. The other side will update it's ackmask with which packets have been received (starting from last received sequence ID) each time it sends a packet back. This checks the resend timers on each non-acknowledged packet and notifies if it's time to resend yet.
Declaration
[Obsolete("Internal API that shouldn't be used. Will be removed in Unity Transport 2.0.")]
public static bool ReleaseOrResumePackets(NetworkPipelineContext context)
Parameters
Type | Name | Description |
---|---|---|
NetworkPipelineContext | context | Pipeline context, contains the buffer slices this pipeline connection owns. |
Returns
Type | Description |
---|---|
bool | If packets needed to be resumed. |
Remarks
Internal API. Shouldn't be used.