public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            NetworkInterface ni;

            // Wait for DHCP (on LWIP devices)
            while (true)
            {
                ni = NetworkInterface.GetAllNetworkInterfaces()[0];

                if (ni.IPAddress != "0.0.0.0")
                {
                    break;
                }

                Thread.Sleep(1000);
            }

            // Create a test application thread
            TestApplication testApp       = new TestApplication();
            Thread          testAppThread = new Thread(new ThreadStart(testApp.Run));

            testAppThread.Start();

            System.Ext.Console.Write("Application started...");
        }
Пример #2
0
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            // Create a test application thread
            TestApplication testApp = new TestApplication();
            Thread testAppThread = new Thread(new ThreadStart(testApp.Run));
            testAppThread.Start();

            System.Ext.Console.Write("Application started...");
        }
Пример #3
0
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            // Create a test application thread
            TestApplication testApp       = new TestApplication();
            Thread          testAppThread = new Thread(new ThreadStart(testApp.Run));

            testAppThread.Start();

            System.Ext.Console.Write("Application started...");
        }
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            NetworkInterface ni;
            
            // Wait for DHCP (on LWIP devices)
            while(true)
            {
                ni = NetworkInterface.GetAllNetworkInterfaces()[0];

                if(ni.IPAddress != "0.0.0.0") break;

                Thread.Sleep(1000);
            }

            // Create a test application thread
            TestApplication testApp = new TestApplication();
            Thread testAppThread = new Thread(new ThreadStart(testApp.Run));
            testAppThread.Start();

            System.Ext.Console.Write("Application started...");
        }