Skip to main content

Unity.Networking.Transport.Relay.RelayAllocationId

Allocation Id is a unique identifier for a connected client/host to a Relay server. This identifier is used by the Relay protocol as the address of the client.

Implements#

System.IEquatable\<RelayAllocationId>

System.IComparable\<RelayAllocationId>

Inherited Members#

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct RelayAllocationId : IEquatable<RelayAllocationId>, IComparable<RelayAllocationId>

k_Length#

Declaration#

public const int k_Length = 16

Field Value#

TypeDescription
System.Int32

Value#

Declaration#

public byte *Value

Field Value#

TypeDescription
System.Byte*

#

CompareTo(RelayAllocationId)#

Declaration#

public int CompareTo(RelayAllocationId other)

Parameters#

TypeNameDescription
RelayAllocationIdother

Returns#

TypeDescription
System.Int32

Equals(Object)#

Declaration#

public override bool Equals(object other)

Parameters#

TypeNameDescription
System.Objectother

Returns#

TypeDescription
System.Boolean

Overrides#

System.ValueType.Equals(System.Object)

Equals(RelayAllocationId)#

Declaration#

public bool Equals(RelayAllocationId other)

Parameters#

TypeNameDescription
RelayAllocationIdother

Returns#

TypeDescription
System.Boolean

FromBytePointer(Byte*, Int32)#

Declaration#

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

Parameters#

TypeNameDescription
System.Byte*dataPtr
System.Int32length

Returns#

TypeDescription
RelayAllocationId

GetHashCode()#

Declaration#

public override int GetHashCode()

Returns#

TypeDescription
System.Int32

Overrides#

System.ValueType.GetHashCode()

#

Equality(RelayAllocationId, RelayAllocationId)#

Declaration#

public static bool operator ==(RelayAllocationId lhs, RelayAllocationId rhs)

Parameters#

TypeNameDescription
RelayAllocationIdlhs
RelayAllocationIdrhs

Returns#

TypeDescription
System.Boolean

Inequality(RelayAllocationId, RelayAllocationId)#

Declaration#

public static bool operator !=(RelayAllocationId lhs, RelayAllocationId rhs)

Parameters#

TypeNameDescription
RelayAllocationIdlhs
RelayAllocationIdrhs

Returns#

TypeDescription
System.Boolean

Implements#

System.IEquatable<T>

System.IComparable<T>