Struct RelayServerData
Used by the Relay Protocol to describe how to connect to the Relay Service.
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Assembly: solution.dll
Syntax
public struct RelayServerData
Constructors
| Name | Description |
|---|---|
| RelayServerData(string, ushort, byte[], byte[], byte[], byte[], bool) | Create a new Relay server data structure. |
| RelayServerData(ref NetworkEndPoint, ushort, RelayAllocationId, string, string, string, bool) | Initializes a new instance of the RelayServerData class |
| RelayServerData(ref NetworkEndPoint, ushort, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, bool) | Initializes a new instance of the RelayServerData class |
Fields
| Name | Description |
|---|---|
| AllocationId | The unique identifier of the client on the Relay Server. |
| ConnectionData | The data that describes the client presence on the Relay Server. |
| Endpoint | The endpoint of the Relay Server. |
| HMAC | The computed HMAC. |
| HMACKey | The HMAC key for the connection. |
| HostConnectionData | The connection data of the host client on the Relay Server. |
| IsSecure | A byte that identifies the connection as secured. |
| Nonce | The Nonce value used to stablish the connection with the Relay Server. |
Methods
| Name | Description |
|---|---|
| ComputeNewNonce() | Computes the new nonce, this must be called one time! |