Struct 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.
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Assembly: solution.dll
Syntax
public struct RelayAllocationId : IEquatable<RelayAllocationId>, IComparable<RelayAllocationId>
Fields
Name | Description |
---|---|
Value | The raw data of the Allocation Id. |
k_Length | The length in bytes of the Allocation Id. |
Methods
Name | Description |
---|---|
CompareTo(RelayAllocationId) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
Equals(object) | Indicates whether this instance and a specified object are equal. |
Equals(RelayAllocationId) | Indicates whether the current object is equal to another object of the same type. |
FromByteArray(byte[]) | Convert a byte array to a RelayAllocationId |
FromBytePointer(byte*, int) | Converts a byte pointer to a RelayAllocationId. |
GetHashCode() | Returns the hash code for this instance. |
Operators
Name | Description |
---|---|
operator ==(RelayAllocationId, RelayAllocationId) | |
operator !=(RelayAllocationId, RelayAllocationId) |