Struct NetworkParameterConstants | Unity Transport | 0.3.1-preview.4
docs.unity.cn
    Show / Hide Table of Contents

    Struct NetworkParameterConstants

    Default NetworkParameter Constants.

    Namespace: Unity.Networking.Transport
    Syntax
    public struct NetworkParameterConstants

    Fields

    ConnectTimeoutMS

    The default connection timeout value. This value can be overridden using the NetworkConfigParameter

    Declaration
    public const int ConnectTimeoutMS = 1000
    Field Value
    Type Description
    Int32

    DisconnectTimeoutMS

    The default disconnect timeout attempts value. This value can be overridden using the NetworkConfigParameter

    Declaration
    public const int DisconnectTimeoutMS = 30000
    Field Value
    Type Description
    Int32

    DriverDataStreamSize

    The default size of the DataStreamWriter. This value can be overridden using the NetworkConfigParameter.

    Declaration
    public const int DriverDataStreamSize = 65536
    Field Value
    Type Description
    Int32

    InitialEventQueueSize

    The default size of the event queue.

    Declaration
    public const int InitialEventQueueSize = 100
    Field Value
    Type Description
    Int32

    InvalidConnectionId

    Declaration
    public const int InvalidConnectionId = -1
    Field Value
    Type Description
    Int32

    MaxConnectAttempts

    The default max connection attempts value. This value can be overridden using the NetworkConfigParameter

    Declaration
    public const int MaxConnectAttempts = 60
    Field Value
    Type Description
    Int32

    MTU

    Declaration
    public const int MTU = 1400
    Field Value
    Type Description
    Int32
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX