Skip to main content

Unity.Networking.Transport.Relay.RelayConnectionData

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

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct RelayConnectionData

k_Length#

The length in bytes of the Connection Data.

Declaration#

public const int k_Length = 255

Field Value#

TypeDescription
System.Int32

Value#

The raw data of the Connection Data

Declaration#

public byte *Value

Field Value#

TypeDescription
System.Byte*

#

FromBytePointer(Byte*, Int32)#

Converts a byte pointer to a RelayConnectionData.

Declaration#

public static RelayConnectionData FromBytePointer(byte *dataPtr, int length)

Parameters#

TypeNameDescription
System.Byte*dataPtrThe pointer to the data of the Connection Data.
System.Int32lengthThe length of the data.

Returns#

TypeDescription
RelayConnectionDataReturns a RelayConnectionData constructed from the provided data.

Exceptions#

TypeCondition
System.ArgumentExceptionProvided byte array length is invalid, must be {k_Length} but got {length}.