docs.unity.cn
    Show / Hide Table of Contents

    Struct RelayConnectionData

    This is the encrypted data that the Relay server uses for describing a connection. Used mainly in the connection establishing process (Binding).

    Namespace: Unity.Networking.Transport.Relay
    Syntax
    public struct RelayConnectionData

    Fields

    k_Length

    The length in bytes of the Connection Data.

    Declaration
    public const int k_Length = null
    Field Value
    Type Description
    Int32

    Value

    The raw data of the Connection Data

    Declaration
    public byte *Value
    Field Value
    Type Description
    Byte*

    Methods

    FromBytePointer(Byte*, Int32)

    Converts a byte pointer to a RelayConnectionData.

    Declaration
    public static RelayConnectionData FromBytePointer(byte *dataPtr, int length)
    Parameters
    Type Name Description
    Byte* dataPtr

    The pointer to the data of the Connection Data.

    Int32 length

    The length of the data.

    Returns
    Type Description
    RelayConnectionData

    Returns a RelayConnectionData constructed from the provided data.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, March 31, 2022
    Terms of use