forked from RevenantX/LiteNetLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (29 loc) · 929 Bytes
/
Program.cs
File metadata and controls
32 lines (29 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using LiteNetLib.Utils;
namespace LibSample
{
class Program
{
static void Main(string[] args)
{
//Test ntp
NtpRequest ntpRequest = null;
ntpRequest = NtpRequest.Create("pool.ntp.org", ntpPacket =>
{
ntpRequest.Close();
if (ntpPacket != null)
Console.WriteLine("[MAIN] NTP time test offset: " + ntpPacket.CorrectionOffset);
else
Console.WriteLine("[MAIN] NTP time error");
});
ntpRequest.Send();
new EchoMessagesTest().Run();
//new HolePunchServerTest().Run();
//new BroadcastTest().Run();
//new BenchmarkTest.TestHost().Run();
//new SerializerBenchmark().Run();
//new SpeedBench().Run();
//new PacketProcessorExample().Run();
}
}
}