docs.unity3d.com
    Show / Hide Table of Contents

    Struct QosResult

    Namespace: Unity.Networking.QoS
    Syntax
    public struct QosResult

    Fields

    DuplicateResponses

    Number of duplicate responses that were ignored.

    Declaration
    public uint DuplicateResponses
    Field Value
    Type Description
    UInt32

    FcType

    Type of FlowControl set on response (if any).

    Declaration
    public FcType FcType
    Field Value
    Type Description
    FcType

    FcUnits

    Units of Flow Control for given FcType (if any).

    Declaration
    public byte FcUnits
    Field Value
    Type Description
    Byte

    InvalidLatencyValue

    Declaration
    public const uint InvalidLatencyValue = 4294967295U
    Field Value
    Type Description
    UInt32

    InvalidPacketLossValue

    Declaration
    public const float InvalidPacketLossValue = 3.40282347E+38F
    Field Value
    Type Description
    Single

    InvalidRequests

    Number of requests ignored due to being invalid (wrote fewer than Length bytes).

    Declaration
    public uint InvalidRequests
    Field Value
    Type Description
    UInt32

    InvalidResponses

    Number of responses discarded due to being invalid (too small, too big, etc.).

    Declaration
    public uint InvalidResponses
    Field Value
    Type Description
    UInt32

    RequestsSent

    Number of valid QoS requests sent.

    Declaration
    public uint RequestsSent
    Field Value
    Type Description
    UInt32

    ResponsesReceived

    Number of valid, non-duplicate QoS responses received.

    Declaration
    public uint ResponsesReceived
    Field Value
    Type Description
    UInt32

    Properties

    AverageLatencyMs

    Average latency (in milliseconds) over all the responses received.

    Declaration
    public uint AverageLatencyMs { get; }
    Property Value
    Type Description
    UInt32
    Remarks

    If no responses have been received, will return QosResult.InvalidLatencyValue.

    PacketLoss

    Percentage of packet loss from 0.0f - 1.0f (0 - 100%).

    Declaration
    public float PacketLoss { get; }
    Property Value
    Type Description
    Single
    Remarks

    If no requests have been sent, will return QosResult.InvalidPacketLossValue.

    Methods

    AddAggregateLatency(UInt32)

    Declaration
    public void AddAggregateLatency(uint amountMs)
    Parameters
    Type Name Description
    UInt32 amountMs
    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