Method SetHostRelayData
SetHostRelayData(string, ushort, byte[], byte[], byte[], bool)
Set the relay server data for the host.
Declaration
public void SetHostRelayData(string ipAddress, ushort port, byte[] allocationId, byte[] key, byte[] connectionData, bool isSecure = false)
Parameters
Type | Name | Description |
---|---|---|
string | ipAddress | IP address or hostname of the relay server. |
ushort | port | UDP port of the relay server. |
byte[] | allocationId | Allocation ID as a byte array. |
byte[] | key | Allocation key as a byte array. |
byte[] | connectionData | Connection data as a byte array. |
bool | isSecure | Whether the connection is secure (uses DTLS). |