jdk/src/java.base/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
changeset 32503 1478c9130534
parent 29986 97167d851fc4
child 32649 2ee9017c7597
equal deleted inserted replaced
32502:03f7450aec42 32503:1478c9130534
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2015, 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
    66                 public Void run() {
    66                 public Void run() {
    67                     System.loadLibrary("net");
    67                     System.loadLibrary("net");
    68                     return null;
    68                     return null;
    69                 }
    69                 }
    70             });
    70             });
    71         init();
       
    72     }
    71     }
    73 
    72 
    74     /**
    73     /**
    75      * Creates a datagram socket
    74      * Creates a datagram socket
    76      */
    75      */
   362 
   361 
   363     protected boolean nativeConnectDisabled() {
   362     protected boolean nativeConnectDisabled() {
   364         return connectDisabled;
   363         return connectDisabled;
   365     }
   364     }
   366 
   365 
   367     native int dataAvailable();
   366     abstract int dataAvailable();
   368     private static native void init();
       
   369 }
   367 }