Пример #1
0
        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();
        }
Пример #2
0
    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();
    }
Пример #3
0
    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();
    }