411 throws IOException {
412 synchronized (stateLock) {
413 if (!isOpen())
414 throw new ClosedChannelException();
415 if (!isBound())
416 return Collections.emptySet();
417
418 return SctpNet.getLocalAddresses(fdVal);
419 }
420 }
421
422 /* Native */
423 private static native void initIDs();
424
425 private static native int accept0(FileDescriptor ssfd,
426 FileDescriptor newfd, InetSocketAddress[] isaa) throws IOException;
427
428 static {
429 Util.load(); // loads nio & net native libraries
430 java.security.AccessController.doPrivileged(
431 new sun.security.action.LoadLibraryAction("sctp"));
432 initIDs();
433 }
434 }
|
411 throws IOException {
412 synchronized (stateLock) {
413 if (!isOpen())
414 throw new ClosedChannelException();
415 if (!isBound())
416 return Collections.emptySet();
417
418 return SctpNet.getLocalAddresses(fdVal);
419 }
420 }
421
422 /* Native */
423 private static native void initIDs();
424
425 private static native int accept0(FileDescriptor ssfd,
426 FileDescriptor newfd, InetSocketAddress[] isaa) throws IOException;
427
428 static {
429 Util.load(); // loads nio & net native libraries
430 java.security.AccessController.doPrivileged(
431 new java.security.PrivilegedAction<Void>() {
432 public Void run() {
433 System.loadLibrary("sctp");
434 return null;
435 }
436 });
437 initIDs();
438 }
439 }
|