docs.unity3d.com
    Show / Hide Table of Contents

    Struct FragmentationPipelineStage

    The fragmentation pipeline stage allows for packets to be broken up into smaller packets.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    Syntax
    [BurstCompile]
    public struct FragmentationPipelineStage : INetworkPipelineStage
    Remarks

    The current implementation of this pipeline stage does not handle reassembly of out-of-order fragments. Thus if it is expected that multiple fragmented messages will be in flight at the same time, and/or if sending on networks with a lot of jitter, it is recommended to pair this pipeline stage with ReliableSequencedPipelineStage.

    Properties

    StaticSize

    Gets the value of the static size

    Declaration
    public readonly int StaticSize { get; }
    Property Value
    Type Description
    Int32
    Implements
    INetworkPipelineStage.StaticSize

    Methods

    StaticInitialize(Byte*, Int32, NetworkSettings)

    Statics the initialize using the specified static instance buffer

    Declaration
    public NetworkPipelineStage StaticInitialize(byte *staticInstanceBuffer, int staticInstanceBufferLength, NetworkSettings settings)
    Parameters
    Type Name Description
    Byte* staticInstanceBuffer

    The static instance buffer

    Int32 staticInstanceBufferLength

    The static instance buffer length

    NetworkSettings settings

    The NetworkSettings

    Returns
    Type Description
    NetworkPipelineStage

    The network pipeline stage

    Implements
    INetworkPipelineStage.StaticInitialize(Byte*, Int32, NetworkSettings)
    Exceptions
    Type Condition
    InvalidOperationException

    Please specify a FragmentationUtility.Parameters with a PayloadCapacity greater than MTU, which is {NetworkParameterConstants.MTU}

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023