Method ResumeReceive
ResumeReceive(NetworkPipelineContext, int, ref bool)
Resume or play back a packet we had received earlier out of order. When an out of order packet is received it is stored since we need to first return the packet with the next sequence ID. When that packet finally arrives it is returned but a pipeline resume is requested since we already have the next packet stored and it can be processed immediately after.
Declaration
public static InboundRecvBuffer ResumeReceive(NetworkPipelineContext context, int startSequence, ref bool needsResume)
Parameters
Type | Name | Description |
---|---|---|
NetworkPipelineContext | context | Pipeline context, we'll use both the shared reliability context and receive context. |
int | startSequence | Ignored. |
bool | needsResume | Ignored. |
Returns
Type | Description |
---|---|
InboundRecvBuffer |