Struct RelayServerData
Connection information about the relay server.
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(string, ushort, byte[], byte[], byte[], byte[], bool, bool) | Create a new Relay server data structure. |
| RelayServerData(ref NetworkEndpoint, ushort, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, bool) | |
| RelayServerData(ref NetworkEndpoint, ushort, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, bool, bool) | Create a new Relay server data structure (low-level constructor). |
Fields
| Name | Description |
|---|---|
| AllocationId | Allocation ID for the server connection. |
| ConnectionData | Connection data of the allocation. |
| Endpoint | Endpoint the relay server can be reached on. |
| HMACKey | HMAC key used to authentify the connection. |
| HostConnectionData | Connection data of the host. |
| IsSecure | Whether the connection is using a secure protocol or not. |
| IsWebSocket | Whether the connection is using the WebSocket protocol. |
| Nonce | Nonce that will be used in the connection handshake. |
Methods
| Name | Description |
|---|---|
| IncrementNonce() | Increment the nonce and recompute the HMAC. |