src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java

Print this page




1083             }
1084         }
1085     }
1086 
1087     /* Native */
1088     private static native void initIDs();
1089 
1090     static native int receive0(int fd, ResultContainer resultContainer,
1091             long address, int length, boolean peek) throws IOException;
1092 
1093     static native int send0(int fd, long address, int length,
1094             SocketAddress target, int assocId, int streamNumber,
1095             boolean unordered, int ppid) throws IOException;
1096 
1097     private static native int checkConnect(FileDescriptor fd, boolean block,
1098             boolean ready) throws IOException;
1099 
1100     static {
1101         Util.load();   /* loads nio & net native libraries */
1102         java.security.AccessController.doPrivileged(
1103                 new sun.security.action.LoadLibraryAction("sctp"));





1104         initIDs();
1105     }
1106 }


1083             }
1084         }
1085     }
1086 
1087     /* Native */
1088     private static native void initIDs();
1089 
1090     static native int receive0(int fd, ResultContainer resultContainer,
1091             long address, int length, boolean peek) throws IOException;
1092 
1093     static native int send0(int fd, long address, int length,
1094             SocketAddress target, int assocId, int streamNumber,
1095             boolean unordered, int ppid) throws IOException;
1096 
1097     private static native int checkConnect(FileDescriptor fd, boolean block,
1098             boolean ready) throws IOException;
1099 
1100     static {
1101         Util.load();   /* loads nio & net native libraries */
1102         java.security.AccessController.doPrivileged(
1103             new java.security.PrivilegedAction<Void>() {
1104                 public Void run() {
1105                     System.loadLibrary("sctp");
1106                     return null;
1107                 }
1108             });
1109         initIDs();
1110     }
1111 }