Class QosRequest | Multiplay QoS Client | 0.1.1-preview.4
docs.unity3d.com
    Show / Hide Table of Contents

    Class QosRequest

    Inheritance
    Object
    QosRequest
    Namespace: Unity.Networking.QoS
    Syntax
    public class QosRequest

    Fields

    MaxPacketLen

    Declaration
    public const int MaxPacketLen = 1500
    Field Value
    Type Description
    Int32

    MinPacketLen

    Declaration
    public const int MinPacketLen = 15
    Field Value
    Type Description
    Int32

    RequestMagic

    Declaration
    public const byte RequestMagic = 89
    Field Value
    Type Description
    Byte

    Properties

    FlowControl

    Declaration
    public byte FlowControl { get; }
    Property Value
    Type Description
    Byte

    Identifier

    Declaration
    public ushort Identifier { get; set; }
    Property Value
    Type Description
    UInt16

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32

    Magic

    Declaration
    public byte Magic { get; }
    Property Value
    Type Description
    Byte

    Sequence

    Declaration
    public byte Sequence { get; set; }
    Property Value
    Type Description
    Byte

    Timestamp

    Declaration
    public ulong Timestamp { get; set; }
    Property Value
    Type Description
    UInt64

    Title

    Declaration
    public byte[] Title { get; set; }
    Property Value
    Type Description
    Byte[]

    Version

    Declaration
    public byte Version { get; }
    Property Value
    Type Description
    Byte

    Methods

    Send(Int64, ref NetworkInterfaceEndPoint, DateTime)

    Send the QosRequest packet to the given endpoint

    Declaration
    public (int, int) Send(long socket, ref NetworkInterfaceEndPoint endPoint, DateTime expireTimeUtc)
    Parameters
    Type Name Description
    Int64 socket

    Native socket descriptor

    NetworkInterfaceEndPoint endPoint

    Remote endpoint to send the request

    DateTime expireTimeUtc

    When to stop trying to send

    Returns
    Type Description
    ValueTuple<Int32, Int32>

    (sent, errorcode) where sent is the number of bytes sent and errorcode is the error code if Send fails. 0 means no error.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if no title is set on the request.

    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