docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)