docs.unity3d.com
    Show / Hide Table of Contents

    Struct RelayConnectionData

    Encrypted data that the Relay server uses to describe a connection.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport.Relay
    Syntax
    public struct RelayConnectionData

    Fields

    k_Length

    Length of the connection data.

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

    Length in bytes.

    Value

    Raw value of the connection data.

    Declaration
    public byte *Value
    Field Value
    Type Description
    Byte*

    Connection data as a fixed byte array.

    Methods

    FromByteArray(Byte[])

    Convert a byte array to a connection data structure.

    Declaration
    public static RelayConnectionData FromByteArray(byte[] data)
    Parameters
    Type Name Description
    Byte[] data

    Array to convert.

    Returns
    Type Description
    RelayConnectionData

    New connection data.

    FromBytePointer(Byte*, Int32)

    Convert a raw buffer to a connection data structure.

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

    Raw pointer to buffer to convert.

    Int32 length

    Length of the buffer to convert.

    Returns
    Type Description
    RelayConnectionData

    New connection data.

    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