public static int main(string [] argv) {
	NetworkMonitor nm = NetworkMonitor.get_default();
        nm.network_changed.connect(on_network_changed);
        nm.notify["network-available"].connect(on_network_available_changed);
    var loop = new MainLoop();
    loop.run();
	return 0;
}

    private void on_network_changed(bool available) {
        print(@"on_network_changed $(available)\n");
    }
