docs.unity3d.com
    Show / Hide Table of Contents

    Struct ReliableUtility

    Utility types, methods, and constants for the ReliableSequencedPipelineStage.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public struct ReliableUtility

    Fields

    DefaultMaximumResendTime

    Maximum amount of time to wait before a reliable packet is resent if it's not been acknowledged. That is, even with a high RTT the reliable pipeline will never wait longer than this value to resend a packet. Can be modified at runtime with SetMaximumResendTime(Int32, NetworkDriver, NetworkPipeline, NetworkConnection) or configured when creating a driver through custom NetworkSettings.

    Declaration
    public const int DefaultMaximumResendTime = 200
    Field Value
    Type Description
    Int32

    Maximum resend time in milliseconds.

    DefaultMinimumResendTime

    Minimum amount of time to wait before a reliable packet is resent if it's not been acknowledged. Can be modified at runtime with SetMinimumResendTime(Int32, NetworkDriver, NetworkPipeline, NetworkConnection), or configured when creating a driver through custom NetworkSettings.

    Declaration
    public const int DefaultMinimumResendTime = 64
    Field Value
    Type Description
    Int32

    Minimum resend time in milliseconds.

    MaximumResendTime

    Obsolete. Renamed to DefaultMaximumResendTime.

    Declaration
    [Obsolete("Renamed to DefaultMaximumResendTime. (UnityUpgradable) -> DefaultMaximumResendTime")]
    public const int MaximumResendTime = 200
    Field Value
    Type Description
    Int32

    Methods

    SetMaximumResendTime(Int32, NetworkDriver, NetworkPipeline, NetworkConnection)

    Modify the maximum resend time used by the reliable pipeline stage for the given pipeline and connection. The default value should be good for most use cases, unless the connection is rather poor (more than 200ms RTT), in which case this value should be increased to be slightly above the RTT (otherwise the pipeline will useless resend packets, increasing bandwidth usage).

    Declaration
    public static void SetMaximumResendTime(int value, NetworkDriver driver, NetworkPipeline pipeline, NetworkConnection connection)
    Parameters
    Type Name Description
    Int32 value

    New maximum resend time.

    NetworkDriver driver

    Driver to modify.

    NetworkPipeline pipeline

    Pipeline to modify.

    NetworkConnection connection

    Connection to modify the value for.

    SetMinimumResendTime(Int32, NetworkDriver, NetworkPipeline, NetworkConnection)

    Modify the minimum resend time used by the reliable pipeline stage for the given pipeline and connection. The default value should be good for most use cases, unless the connection is extremely good (less than 25ms RTT), in which case lowering this value could potentially reduce latency when packet loss occurs.

    Declaration
    public static void SetMinimumResendTime(int value, NetworkDriver driver, NetworkPipeline pipeline, NetworkConnection connection)
    Parameters
    Type Name Description
    Int32 value

    New minimum resend time.

    NetworkDriver driver

    Driver to modify.

    NetworkPipeline pipeline

    Pipeline to modify.

    NetworkConnection connection

    Connection to modify the value for.

    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