Skip to content

Commit

Permalink
Change back litenetlib from cutting edge master to nuget package 0.9.4
Browse files Browse the repository at this point in the history
Cutting edge might make sense in a different branch
  • Loading branch information
JohannesDeml committed Apr 9, 2021
1 parent 61ccada commit 668cf74
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "LiteNetLib"]
path = LiteNetLib
url = https://github.com/JohannesDeml/LiteNetLib.git
1 change: 0 additions & 1 deletion LiteNetLib
Submodule LiteNetLib deleted from 511039
2 changes: 0 additions & 2 deletions NetworkBenchmarkDotNet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetworkBenchmarkDotNet", "N
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kcp2k", "Kcp2k\Kcp2k.csproj", "{03C5C23F-A642-41F5-8CB7-4D985629B2DA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiteNetLib", "LiteNetLib\LiteNetLib\LiteNetLib.csproj", "{C6551124-4DAB-4E08-8FA7-14BF1E95998A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
6 changes: 5 additions & 1 deletion NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public EchoClient(int id, Configuration config, BenchmarkStatistics benchmarkSta
netManager = new NetManager(listener);
if (!config.Address.Contains(':'))
{
netManager.IPv6Mode = IPv6Mode.Disabled;
// For LiteNetLib 1.0 and above
//netManager.IPv6Mode = IPv6Mode.Disabled;

// LiteNetLib up to 0.9.4
netManager.IPv6Enabled = IPv6Mode.Disabled;
}

netManager.UpdateTime = Utilities.CalculateTimeout(config.ClientTickRate);
Expand Down
6 changes: 5 additions & 1 deletion NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ public EchoServer(Configuration config, BenchmarkStatistics benchmarkStatistics)
netManager.UpdateTime = Utilities.CalculateTimeout(config.ServerTickRate);
if (!config.Address.Contains(':'))
{
netManager.IPv6Mode = IPv6Mode.Disabled;
// For LiteNetLib 1.0 and above
//netManager.IPv6Mode = IPv6Mode.Disabled;

// LiteNetLib up to 0.9.4
netManager.IPv6Enabled = IPv6Mode.Disabled;
}

netManager.UnsyncedEvents = true;
Expand Down
2 changes: 1 addition & 1 deletion NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
<PackageReference Include="ENet-CSharp" Version="2.4.6" />
<PackageReference Include="LiteNetLib" Version="0.9.4" />
<PackageReference Include="NetCoreServer" Version="5.0.15" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
</ItemGroup>
Expand All @@ -44,7 +45,6 @@

<ItemGroup>
<ProjectReference Include="..\Kcp2k\Kcp2k.csproj" />
<ProjectReference Include="..\LiteNetLib\LiteNetLib\LiteNetLib.csproj" />
</ItemGroup>


Expand Down

0 comments on commit 668cf74

Please sign in to comment.