docs.unity.cn
    Show / Hide Table of Contents

    Class BaselibNetworkParameterExtensions

    Extensions for BaselibNetworkParameter.

    Inheritance
    Object
    BaselibNetworkParameterExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Networking.Transport
    Syntax
    public static class BaselibNetworkParameterExtensions

    Methods

    GetBaselibNetworkInterfaceParameters(ref NetworkSettings)

    Gets the BaselibNetworkParameter

    Declaration
    public static BaselibNetworkParameter GetBaselibNetworkInterfaceParameters(this ref NetworkSettings settings)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to get parameters from.

    Returns
    Type Description
    BaselibNetworkParameter

    Returns the BaselibNetworkParameter values for the NetworkSettings

    WithBaselibNetworkInterfaceParameters(ref NetworkSettings, Int32, Int32, UInt32)

    Sets the BaselibNetworkParameter values for the NetworkSettings

    Declaration
    public static ref NetworkSettings WithBaselibNetworkInterfaceParameters(this ref NetworkSettings settings, int receiveQueueCapacity = 64, int sendQueueCapacity = 64, uint maximumPayloadSize = 2000U)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to modify.

    Int32 receiveQueueCapacity receiveQueueCapacity
    Int32 sendQueueCapacity sendQueueCapacity
    UInt32 maximumPayloadSize maximumPayloadSize
    Returns
    Type Description
    NetworkSettings

    Modified NetworkSettings.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023