Method Write
Write(NetworkPipelineContext, InboundSendBuffer, ref PacketHeader)
Store the packet for possible later resends, and fill in the header we'll use to send it (populate with sequence ID, last acknowledged ID from remote with ackmask.
Declaration
[Obsolete("Will be removed in Unity Transport 2.0.")]
public static int Write(NetworkPipelineContext context, InboundSendBuffer inboundBuffer, ref ReliableUtility.PacketHeader header)
Parameters
Type | Name | Description |
---|---|---|
NetworkPipelineContext | context | Pipeline context, the reliability shared state is used here. |
InboundSendBuffer | inboundBuffer | Buffer with packet data. |
ReliableUtility.PacketHeader | header | Packet header which will be populated. |
Returns
Type | Description |
---|---|
int | Sequence ID assigned to this packet. |