Skip to main content

Unity.Networking.Transport.Relay.RelayServerData

Used by the Relay Protocol to describe how to connect to the Relay Service.

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 RelayServerData

RelayServerData(ref NetworkEndPoint, UInt16, RelayAllocationId, String, String, String, Boolean)#

Initializes a new instance of the RelayServerData class

Declaration#

public RelayServerData(ref NetworkEndPoint endpoint, ushort nonce, RelayAllocationId allocationId, string connectionData, string hostConnectionData, string key, bool isSecure)

Parameters#

TypeNameDescription
NetworkEndPointendpointThe endpoint
System.UInt16nonceThe nonce
RelayAllocationIdallocationIdThe allocation id
System.StringconnectionDataThe connection data
System.StringhostConnectionDataThe host connection data
System.StringkeyThe key
System.BooleanisSecureThe is secure

RelayServerData(ref NetworkEndPoint, UInt16, ref RelayAllocationId, ref RelayConnectionData, ref RelayConnectionData, ref RelayHMACKey, Boolean)#

Initializes a new instance of the RelayServerData class

Declaration#

public RelayServerData(ref NetworkEndPoint endpoint, ushort nonce, ref RelayAllocationId allocationId, ref RelayConnectionData connectionData, ref RelayConnectionData hostConnectionData, ref RelayHMACKey key, bool isSecure)

Parameters#

TypeNameDescription
NetworkEndPointendpointThe endpoint
System.UInt16nonceThe nonce
RelayAllocationIdallocationIdThe allocation id
RelayConnectionDataconnectionDataThe connection data
RelayConnectionDatahostConnectionDataThe host connection data
RelayHMACKeykeyThe key
System.BooleanisSecureThe is secure

#

AllocationId#

The unique identifier of the client on the Relay Server.

Declaration#

public RelayAllocationId AllocationId

Field Value#

TypeDescription
RelayAllocationId

ConnectionData#

The data that describes the client presence on the Relay Server.

Declaration#

public RelayConnectionData ConnectionData

Field Value#

TypeDescription
RelayConnectionData

ConnectionSessionId#

The Session Id for the connection with the Relay Server.

Declaration#

public SessionIdToken ConnectionSessionId

Field Value#

TypeDescription
SessionIdToken

Endpoint#

The endpoint of the Relay Server.

Declaration#

public NetworkEndPoint Endpoint

Field Value#

TypeDescription
NetworkEndPoint

HMAC#

The computed HMAC.

Declaration#

public byte *HMAC

Field Value#

TypeDescription
System.Byte*

HMACKey#

The HMAC key for the connection.

Declaration#

public RelayHMACKey HMACKey

Field Value#

TypeDescription
RelayHMACKey

HostConnectionData#

The connection data of the host client on the Relay Server.

Declaration#

public RelayConnectionData HostConnectionData

Field Value#

TypeDescription
RelayConnectionData

IsSecure#

A byte that identifies the connection as secured.

Declaration#

public readonly byte IsSecure

Field Value#

TypeDescription
System.Byte

Nonce#

The Nonce value used to stablish the connection with the Relay Server.

Declaration#

public ushort Nonce

Field Value#

TypeDescription
System.UInt16

#

ComputeNewNonce()#

Computes the new nonce, this must be called one time!

Declaration#

public void ComputeNewNonce()