Skip to content

Commit 26a9d49

Browse files
committed
cleanup
1 parent 51ff793 commit 26a9d49

File tree

55 files changed

+558
-612
lines changed

Some content is hidden

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

55 files changed

+558
-612
lines changed

Benchmarks/RelayBenchmark/Program.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private static void RelayTest()
248248
var testMessage = new MessageEnvelope()
249249
{
250250
Header = "Test",
251-
Payload = new byte[126000]
251+
Payload = new byte[12600]
252252
};
253253
for (int i = 0; i < testMessage.PayloadCount; i++)
254254
{
@@ -261,9 +261,9 @@ private static void RelayTest()
261261
{
262262
//await client.SendRequestAndWaitResponse(peer, testMessage,1000);
263263
//client.SendAsyncMessage(peer, testMessage);
264-
//client.SendUdpMesssage(peer, testMessage);
264+
client.SendUdpMesssage(peer, testMessage);
265265
// client.BroadcastMessage(testMessage);
266-
client.BroadcastUdpMessage(testMessage);
266+
//client.BroadcastUdpMessage(testMessage);
267267
// client.SendRudpMessage(peer,testMessage);
268268
}
269269
}
@@ -289,15 +289,15 @@ void ClientUdpReceived(RelayClient client, MessageEnvelope reply)
289289
{
290290

291291
// Interlocked.Increment(ref totMsgCl);
292-
//for (int i = 0; i < reply.PayloadCount; i++)
293-
//{
294-
// //Console.WriteLine(reply.Payload[reply.PayloadOffset + i]);
295-
// if (reply.Payload[reply.PayloadOffset + i] != (byte)i)
296-
// {
297-
// var a = reply.Payload[reply.PayloadOffset + i];
298-
// var b = (byte)i;
299-
// }
300-
//}
292+
for (int i = 0; i < reply.PayloadCount; i++)
293+
{
294+
//Console.WriteLine(reply.Payload[reply.PayloadOffset + i]);
295+
if (reply.Payload[reply.PayloadOffset + i] != (byte)i)
296+
{
297+
var a = reply.Payload[reply.PayloadOffset + i];
298+
var b = (byte)i;
299+
}
300+
}
301301
client.SendUdpMesssage(reply.From, reply);
302302
//client.SendRudpMessage(reply.From, reply);
303303
return;

0 commit comments

Comments
 (0)