mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
breaking: AsmDef Updates
- KcpTransport moved up - SimpleWeb moved into folder - AsmDef chains updated and simplified
This commit is contained in:
parent
94bb3690ae
commit
fe03ba88d9
@ -2,9 +2,7 @@
|
|||||||
"name": "Mirror",
|
"name": "Mirror",
|
||||||
"rootNamespace": "",
|
"rootNamespace": "",
|
||||||
"references": [
|
"references": [
|
||||||
"GUID:325984b52e4128546bc7558552f8b1d2",
|
"GUID:325984b52e4128546bc7558552f8b1d2"
|
||||||
"GUID:725ee7191c021de4dbf9269590ded755",
|
|
||||||
"GUID:6806a62c384838046a3c66c44f06d75f"
|
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"references": [
|
"references": [
|
||||||
"GUID:30817c1a0e6d646d99c048fc403f5979",
|
"GUID:30817c1a0e6d646d99c048fc403f5979",
|
||||||
"GUID:72872094b21c16e48b631b2224833d49",
|
"GUID:72872094b21c16e48b631b2224833d49",
|
||||||
|
"GUID:627104647b9c04b4ebb8978a92ecac63",
|
||||||
"GUID:6055be8ebefd69e48b49212b09b47b2f"
|
"GUID:6055be8ebefd69e48b49212b09b47b2f"
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
"GUID:1c7c33eb5480dd24c9e29a8250c1a775",
|
"GUID:1c7c33eb5480dd24c9e29a8250c1a775",
|
||||||
"GUID:72872094b21c16e48b631b2224833d49",
|
"GUID:72872094b21c16e48b631b2224833d49",
|
||||||
"GUID:4e9aca8a359ab48de906aedbfa1ffe21",
|
"GUID:4e9aca8a359ab48de906aedbfa1ffe21",
|
||||||
"GUID:725ee7191c021de4dbf9269590ded755",
|
|
||||||
"GUID:27619889b8ba8c24980f49ee34dbb44a",
|
"GUID:27619889b8ba8c24980f49ee34dbb44a",
|
||||||
"GUID:0acc523941302664db1f4e527237feb3",
|
"GUID:0acc523941302664db1f4e527237feb3",
|
||||||
"GUID:1d0b9d21c3ff546a4aa32399dfd33474",
|
"GUID:1d0b9d21c3ff546a4aa32399dfd33474",
|
||||||
"GUID:4887344a35d890449b35f8b1b0a3355a",
|
"GUID:4887344a35d890449b35f8b1b0a3355a",
|
||||||
"GUID:e1cda8afe30f847fe8b40485b4768089",
|
"GUID:627104647b9c04b4ebb8978a92ecac63"
|
||||||
"GUID:513aba84521ba40b697b5aac9ecd91fc"
|
|
||||||
],
|
],
|
||||||
"includePlatforms": [
|
"includePlatforms": [
|
||||||
"Editor"
|
"Editor"
|
||||||
@ -23,7 +21,6 @@
|
|||||||
"precompiledReferences": [
|
"precompiledReferences": [
|
||||||
"NSubstitute.dll",
|
"NSubstitute.dll",
|
||||||
"Castle.Core.dll",
|
"Castle.Core.dll",
|
||||||
"System.Threading.Tasks.Extensions.dll",
|
|
||||||
"Mono.CecilX.dll",
|
"Mono.CecilX.dll",
|
||||||
"nunit.framework.dll"
|
"nunit.framework.dll"
|
||||||
],
|
],
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "kcp2k",
|
"name": "kcp2k",
|
||||||
"rootNamespace": "",
|
"rootNamespace": "",
|
||||||
"references": [],
|
"references": [
|
||||||
|
"GUID:30817c1a0e6d646d99c048fc403f5979"
|
||||||
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
"allowUnsafeCode": true,
|
"allowUnsafeCode": true,
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "MiddlewareTransport",
|
|
||||||
"rootNamespace": "",
|
|
||||||
"references": [
|
|
||||||
"GUID:30817c1a0e6d646d99c048fc403f5979"
|
|
||||||
],
|
|
||||||
"includePlatforms": [],
|
|
||||||
"excludePlatforms": [],
|
|
||||||
"allowUnsafeCode": false,
|
|
||||||
"overrideReferences": false,
|
|
||||||
"precompiledReferences": [],
|
|
||||||
"autoReferenced": true,
|
|
||||||
"defineConstraints": [],
|
|
||||||
"versionDefines": [],
|
|
||||||
"noEngineReferences": false
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 513aba84521ba40b697b5aac9ecd91fc
|
|
||||||
AssemblyDefinitionImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "MultiplexTransport",
|
|
||||||
"rootNamespace": "",
|
|
||||||
"references": [
|
|
||||||
"GUID:30817c1a0e6d646d99c048fc403f5979"
|
|
||||||
],
|
|
||||||
"includePlatforms": [],
|
|
||||||
"excludePlatforms": [],
|
|
||||||
"allowUnsafeCode": false,
|
|
||||||
"overrideReferences": false,
|
|
||||||
"precompiledReferences": [],
|
|
||||||
"autoReferenced": true,
|
|
||||||
"defineConstraints": [],
|
|
||||||
"versionDefines": [],
|
|
||||||
"noEngineReferences": false
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e1cda8afe30f847fe8b40485b4768089
|
|
||||||
AssemblyDefinitionImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 7bdb797750d0a490684410110bf48192
|
guid: 8ae237a052b29fc4b8d000f48e545bb7
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
@ -57,9 +57,18 @@ public bool TryHandshake(Connection conn, Uri uri)
|
|||||||
}
|
}
|
||||||
|
|
||||||
string responseString = Encoding.ASCII.GetString(responseBuffer, 0, lengthOrNull.Value);
|
string responseString = Encoding.ASCII.GetString(responseBuffer, 0, lengthOrNull.Value);
|
||||||
|
Log.Verbose($"[SimpleWebTransport] Handshake Response {responseString}");
|
||||||
|
|
||||||
string acceptHeader = "Sec-WebSocket-Accept: ";
|
string acceptHeader = "Sec-WebSocket-Accept: ";
|
||||||
int startIndex = responseString.IndexOf(acceptHeader, StringComparison.InvariantCultureIgnoreCase) + acceptHeader.Length;
|
int startIndex = responseString.IndexOf(acceptHeader, StringComparison.InvariantCultureIgnoreCase) + acceptHeader.Length;
|
||||||
|
|
||||||
|
if (startIndex < 0)
|
||||||
|
{
|
||||||
|
Log.Error($"[SimpleWebTransport] Unexpected Handshake Response {responseString}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
startIndex += acceptHeader.Length;
|
||||||
int endIndex = responseString.IndexOf("\r\n", startIndex);
|
int endIndex = responseString.IndexOf("\r\n", startIndex);
|
||||||
string responseKey = responseString.Substring(startIndex, endIndex - startIndex);
|
string responseKey = responseString.Substring(startIndex, endIndex - startIndex);
|
||||||
|
|
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SimpleWebTransport",
|
"name": "SimpleWebTransport",
|
||||||
"rootNamespace": "",
|
"rootNamespace": "",
|
||||||
"references": [
|
"references": [],
|
||||||
"GUID:30817c1a0e6d646d99c048fc403f5979"
|
|
||||||
],
|
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
"allowUnsafeCode": false,
|
"allowUnsafeCode": false,
|
Loading…
Reference in New Issue
Block a user