Struct RelayConnectionData
Encrypted data that the Relay server uses to describe a connection.
Inherited Members
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. |