equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
333 static native void shutdown0(int fd, int assocId); |
333 static native void shutdown0(int fd, int assocId); |
334 |
334 |
335 static native void init(); |
335 static native void init(); |
336 |
336 |
337 static { |
337 static { |
|
338 IOUtil.load(); // loads nio & net native libraries |
|
339 java.security.AccessController.doPrivileged( |
|
340 new java.security.PrivilegedAction<Void>() { |
|
341 public Void run() { |
|
342 System.loadLibrary("sctp"); |
|
343 return null; |
|
344 } |
|
345 }); |
338 init(); |
346 init(); |
339 } |
347 } |
340 } |
348 } |
341 |
349 |