Skip to content

Commit b122ae3

Browse files
committed
extentions Protobuf direct interface
new concurrent holepunch state management
1 parent a1e1849 commit b122ae3

File tree

76 files changed

+3429
-1448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3429
-1448
lines changed

Benchmarks/ProtobuffBenchmark/Program.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
using NetworkLibrary.Utils;
55
using ProtoBuf;
66
using Protobuff;
7+
using System;
8+
using System.Collections.Generic;
79
using System.Diagnostics;
810
using System.Net.Security;
911
using System.Runtime.ConstrainedExecution;
1012
using System.Security.Cryptography.X509Certificates;
13+
using System.Threading;
14+
using System.Threading.Tasks;
15+
1116
internal class Program
1217
{
1318
static int port = 20007;
@@ -192,7 +197,7 @@ private static void ShowStatus()
192197
}
193198

194199
}
195-
200+
#region Old
196201
//internal class Program1
197202
//{
198203
// static void Main(string[] args)
@@ -457,7 +462,7 @@ private static void ShowStatus()
457462

458463
// }
459464
//}
460-
465+
#endregion
461466

462467

463468

Benchmarks/ProtobuffBenchmark/ProtobuffBenchmark.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
6-
<ImplicitUsings>enable</ImplicitUsings>
5+
<TargetFramework>net6.0</TargetFramework>
76
<Nullable>enable</Nullable>
87
</PropertyGroup>
98

Benchmarks/SecureProtobuffBenchmark/Program.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
using NetworkLibrary.TCP.SSL.ByteMessage;
44
using NetworkLibrary.Utils;
55
using Protobuff;
6+
using System;
7+
using System.Collections.Generic;
68
using System.Diagnostics;
79
using System.Net.Security;
810
using System.Runtime.ConstrainedExecution;
911
using System.Security.Cryptography.X509Certificates;
12+
using System.Threading;
13+
using System.Threading.Tasks;
14+
1015
internal class Program
1116
{
1217
static int port = 20007;
@@ -193,6 +198,7 @@ private static void ShowStatus()
193198

194199
}
195200

201+
#region Old
196202
//internal class Program1
197203
//{
198204
// static void Main(string[] args)
@@ -220,7 +226,7 @@ private static void ShowStatus()
220226
// };
221227
// ConcurrentProtoSerialiser serialiser = new ConcurrentProtoSerialiser();
222228

223-
229+
224230

225231
// var server = new ProtoServer(20008, 100);
226232
// server.OnMessageReceived += ServerStsReceived;
@@ -360,7 +366,7 @@ private static void ShowStatus()
360366
// }
361367
// }
362368

363-
369+
364370
// }
365371
// private static void SecureProtoBench()
366372
// {
@@ -454,10 +460,10 @@ private static void ShowStatus()
454460
// }
455461
// }
456462

457-
463+
458464
// }
459465
//}
460-
466+
#endregion
461467

462468

463469

Benchmarks/SecureProtobuffBenchmark/SecureProtobuffBenchmark.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
6-
<ImplicitUsings>enable</ImplicitUsings>
5+
<TargetFramework>net6.0</TargetFramework>
76
<Nullable>enable</Nullable>
87
</PropertyGroup>
98

0 commit comments

Comments
 (0)