示例#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();
    }