Method Read
Read(NetworkPipelineContext, PacketHeader)
Read header data and update reliability tracking information in the shared context.
- If the packets sequence ID is lower than the last received ID+1, then it's stale
- If the packets sequence ID is higher, then we'll process it and update tracking info in the shared context
Declaration
[Obsolete("Will be removed in Unity Transport 2.0.")]
public static int Read(NetworkPipelineContext context, ReliableUtility.PacketHeader header)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkPipelineContext | context | Pipeline context, the reliability shared state is used here. |
| ReliableUtility.PacketHeader | header | Packet header of a new received packet. |
Returns
| Type | Description |
|---|---|
| int | Sequence ID of the received packet. |