浏览代码
DTLS integration, probably? It's not in this Editor version, but this should work in 2021. Added a test to say "hey, this is the wrong version" and everything still works the same as before adding DTLS.
/main/staging/relay_dtls
DTLS integration, probably? It's not in this Editor version, but this should work in 2021. Added a test to say "hey, this is the wrong version" and everything still works the same as before adding DTLS.
/main/staging/relay_dtls
nathaniel.buck@unity3d.com
3 年前
当前提交
a0ba1fdd
共有 4 个文件被更改,包括 78 次插入 和 11 次删除
-
42Assets/Scripts/Relay/RelayUtpSetup.cs
-
3Assets/Scripts/Tests/PlayMode/Tests.Play.asmdef
-
33Assets/Scripts/Tests/PlayMode/UtpTests.cs
-
11Assets/Scripts/Tests/PlayMode/UtpTests.cs.meta
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using LobbyRelaySample.relay; |
|||
using NUnit.Framework; |
|||
using Unity.Networking.Transport; |
|||
using Unity.Services.Relay.Models; |
|||
using UnityEngine.TestTools; |
|||
|
|||
namespace Test |
|||
{ |
|||
public class UtpTests |
|||
{ |
|||
private class RelayUtpTest : RelayUtpSetupHost |
|||
{ |
|||
public NetworkEndPoint GetEndpointButPublic(List<RelayServerEndpoint> endpoints, string ip, int port, out bool isSecure) |
|||
{ |
|||
return GetEndpointForAllocation(endpoints, ip, port, out isSecure); |
|||
} |
|||
} |
|||
|
|||
[UnityTest] |
|||
public IEnumerator DTLSCheck() |
|||
{ |
|||
yield return null; // TEMP
|
|||
|
|||
#if ENABLE_MANAGED_UNITYTLS
|
|||
Assert.Fail("TODO: Implement."); |
|||
#else
|
|||
Assert.Ignore("DTLS is not available in this version of Unity."); |
|||
#endif
|
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 0a6dfe6148a08af46a8eb5ffbbcf3f09 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue