コード例 #1
0
        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
ファイル: Program.cs プロジェクト: awakegod/NETMF-LPC
        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...");
        }
コード例 #4
0
        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...");
        }