src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java

Print this page




 144                 if (notifyAddrChange0() != 0)
 145                     return;
 146                 synchronized (lock) {
 147                     changed = true;
 148                 }
 149             }
 150         }
 151     }
 152 
 153 
 154     // --- Native methods --
 155 
 156     static native void init0();
 157 
 158     static native void loadDNSconfig0();
 159 
 160     static native int notifyAddrChange0();
 161 
 162     static {
 163         java.security.AccessController.doPrivileged(
 164             new sun.security.action.LoadLibraryAction("net"));





 165         init0();
 166 
 167         // start the address listener thread
 168         AddressChangeListener thr = new AddressChangeListener();
 169         thr.setDaemon(true);
 170         thr.start();
 171     }
 172 }
 173 
 174 /**
 175  * Implementation of {@link ResolverConfiguration.Options}
 176  */
 177 class OptionsImpl extends ResolverConfiguration.Options {
 178 }


 144                 if (notifyAddrChange0() != 0)
 145                     return;
 146                 synchronized (lock) {
 147                     changed = true;
 148                 }
 149             }
 150         }
 151     }
 152 
 153 
 154     // --- Native methods --
 155 
 156     static native void init0();
 157 
 158     static native void loadDNSconfig0();
 159 
 160     static native int notifyAddrChange0();
 161 
 162     static {
 163         java.security.AccessController.doPrivileged(
 164             new java.security.PrivilegedAction<Void>() {
 165                 public Void run() {
 166                     System.loadLibrary("net");
 167                     return null;
 168                 }
 169             });
 170         init0();
 171 
 172         // start the address listener thread
 173         AddressChangeListener thr = new AddressChangeListener();
 174         thr.setDaemon(true);
 175         thr.start();
 176     }
 177 }
 178 
 179 /**
 180  * Implementation of {@link ResolverConfiguration.Options}
 181  */
 182 class OptionsImpl extends ResolverConfiguration.Options {
 183 }