diff --git a/NetworkBenchmarkDotNet/Libraries/Enet/EchoClient.cs b/NetworkBenchmarkDotNet/Libraries/Enet/EchoClient.cs index 722a66a..4078f97 100644 --- a/NetworkBenchmarkDotNet/Libraries/Enet/EchoClient.cs +++ b/NetworkBenchmarkDotNet/Libraries/Enet/EchoClient.cs @@ -86,7 +86,7 @@ public override void Dispose() public override void SendMessages(int messageCount, TransmissionType transmissionType) { - var flags = ENetBenchmark.GetPacketFlags(config.Transmission); + var flags = ENetBenchmark.GetPacketFlags(transmissionType); // Don't do this in a real-world application, ENet is not thread safe // send should only be called in the thread that also calls host.Service diff --git a/NetworkBenchmarkDotNet/Libraries/Enet/EchoServer.cs b/NetworkBenchmarkDotNet/Libraries/Enet/EchoServer.cs index de1baa3..9f47041 100644 --- a/NetworkBenchmarkDotNet/Libraries/Enet/EchoServer.cs +++ b/NetworkBenchmarkDotNet/Libraries/Enet/EchoServer.cs @@ -142,7 +142,7 @@ private void Send(byte[] data, byte channelId, Peer peer) private void Broadcast(byte[] data, byte channelId, TransmissionType transmissionType) { Packet packet = default(Packet); - var flags = ENetBenchmark.GetPacketFlags(config.Transmission); + var flags = ENetBenchmark.GetPacketFlags(transmissionType); packet.Create(data, data.Length, flags); host.Broadcast(channelId, ref packet); diff --git a/NetworkBenchmarkDotNet/Libraries/Kcp2k/EchoClient.cs b/NetworkBenchmarkDotNet/Libraries/Kcp2k/EchoClient.cs index d10cc1c..25bc348 100644 --- a/NetworkBenchmarkDotNet/Libraries/Kcp2k/EchoClient.cs +++ b/NetworkBenchmarkDotNet/Libraries/Kcp2k/EchoClient.cs @@ -107,7 +107,7 @@ public override void Dispose() public override void SendMessages(int messageCount, TransmissionType transmissionType) { - var channel = Kcp2kBenchmark.GetChannel(config.Transmission); + var channel = Kcp2kBenchmark.GetChannel(transmissionType); for (int i = 0; i < messageCount; i++) { diff --git a/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoClient.cs b/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoClient.cs index 93168df..ef1ab1f 100644 --- a/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoClient.cs +++ b/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoClient.cs @@ -113,7 +113,7 @@ public override void Dispose() public override void SendMessages(int messageCount, TransmissionType transmissionType) { - var delivery = LiteNetLibBenchmark.GetDeliveryMethod(config.Transmission); + var delivery = LiteNetLibBenchmark.GetDeliveryMethod(transmissionType); for (int i = 0; i < messageCount; i++) { diff --git a/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoServer.cs b/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoServer.cs index 54d430e..49a514e 100644 --- a/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoServer.cs +++ b/NetworkBenchmarkDotNet/Libraries/LiteNetLib/EchoServer.cs @@ -76,7 +76,7 @@ public override void Dispose() public override void SendMessages(int messageCount, TransmissionType transmissionType) { - var delivery = LiteNetLibBenchmark.GetDeliveryMethod(config.Transmission); + var delivery = LiteNetLibBenchmark.GetDeliveryMethod(transmissionType); for (int i = 0; i < messageCount; i++) {