175 // wait for configuration to change
176 if (notifyAddrChange0() != 0)
177 return;
178 synchronized (lock) {
179 changed = true;
180 }
181 }
182 }
183 }
184
185
186 // --- Native methods --
187
188 static native void init0();
189
190 static native void loadDNSconfig0();
191
192 static native int notifyAddrChange0();
193
194 static {
195 jdk.internal.loader.BootLoader.loadLibrary("net");
196 init0();
197
198 // start the address listener thread
199 AddressChangeListener thr = new AddressChangeListener();
200 thr.setDaemon(true);
201 thr.start();
202 }
203 }
204
205 /**
206 * Implementation of {@link ResolverConfiguration.Options}
207 */
208 class OptionsImpl extends ResolverConfiguration.Options {
209 }
|
175 // wait for configuration to change
176 if (notifyAddrChange0() != 0)
177 return;
178 synchronized (lock) {
179 changed = true;
180 }
181 }
182 }
183 }
184
185
186 // --- Native methods --
187
188 static native void init0();
189
190 static native void loadDNSconfig0();
191
192 static native int notifyAddrChange0();
193
194 static {
195 sun.security.action.LoadLibraryAction.privilegedLoadLibrary("net");
196 init0();
197
198 // start the address listener thread
199 AddressChangeListener thr = new AddressChangeListener();
200 thr.setDaemon(true);
201 thr.start();
202 }
203 }
204
205 /**
206 * Implementation of {@link ResolverConfiguration.Options}
207 */
208 class OptionsImpl extends ResolverConfiguration.Options {
209 }
|