static void Main(string[] args) { NtpSyncModule ntpSync = new NtpSyncModule("pool.ntp.org"); ntpSync.GetNetworkTime(); if (ntpSync.SyncedTime.HasValue) { Console.WriteLine("Synced time test: " + ntpSync.SyncedTime.Value); } MessageQueueHandler mHandler = new MessageQueueHandler(); mHandler.Run(); }
static void Main(string[] args) { //Test ntp NtpSyncModule ntpSync = new NtpSyncModule("pool.ntp.org"); ntpSync.GetNetworkTime(); if (ntpSync.SyncedTime.HasValue) { Console.WriteLine("Synced time test: " + ntpSync.SyncedTime.Value); } new EchoMessagesTest().Run(); //new HolePunchServerTest().Run(); //new BroadcastTest().Run(); //new BenchmarkTest.TestHost().Run(); //new SerializerTest().Run(); }
static void Main(string[] args) { //Test ntp NtpSyncModule ntpSync = new NtpSyncModule("pool.ntp.org"); ntpSync.GetNetworkTime(); if (ntpSync.SyncedTime.HasValue) { Console.WriteLine("Synced time test: " + ntpSync.SyncedTime.Value); } //HolePunchServerTest holePunchServerTest = new HolePunchServerTest(); EchoMessagesTest echoMessagesTest = new EchoMessagesTest(); //holePunchServerTest.Run(); echoMessagesTest.Run(); }