예제 #1
0
        private void ethernet_NetworkUp(Module.NetworkModule sender, Module.NetworkModule.NetworkState state)
        {
            Debug.Print("------------------------------------");
            Debug.Print("Connected to network.");
            Debug.Print("Network settings:");
            Debug.Print("IP Address: " + ethernet.NetworkSettings.IPAddress);
            Debug.Print("Subnet Mask: " + ethernet.NetworkSettings.SubnetMask);
            Debug.Print("Default Getway: " + ethernet.NetworkSettings.GatewayAddress);
            Debug.Print("DNS Server: " + ethernet.NetworkSettings.DnsAddresses[0]);
            Debug.Print("------------------------------------");

            setNetwork(true);
        }
예제 #2
0
 private void ethernet_NetworkDown(Module.NetworkModule sender, Module.NetworkModule.NetworkState state)
 {
     Debug.Print("Disconnected from network.");
     setNetwork(false);
     setTimeSynch(false);
 }