jdk/src/solaris/classes/sun/nio/ch/SctpNet.java
changeset 3072 a801b122142f
parent 2542 d859108aea12
child 4669 11d1dbd3598d
--- a/jdk/src/solaris/classes/sun/nio/ch/SctpNet.java	Mon Jun 29 13:29:05 2009 +0100
+++ b/jdk/src/solaris/classes/sun/nio/ch/SctpNet.java	Mon Jun 29 14:53:10 2009 +0100
@@ -232,6 +232,11 @@
         shutdown0(fd, assocId);
     }
 
+    static FileDescriptor branch(int fd, int assocId) throws IOException {
+        int nativefd = branch0(fd, assocId);
+        return IOUtil.newFD(nativefd);
+    }
+
     /* Native Methods */
     static native int socket0(boolean oneToOne) throws IOException;
 
@@ -248,6 +253,8 @@
     static native SocketAddress[] getRemoteAddresses0(int fd, int assocId)
             throws IOException;
 
+    static native int branch0(int fd, int assocId) throws IOException;
+
     static native void setPrimAddrOption0(int fd, int assocId, InetAddress ia,
             int port) throws IOException;