jdk/src/java.base/unix/classes/java/net/PlainDatagramSocketImpl.java
changeset 32503 1478c9130534
parent 30963 88469d06e03f
child 32649 2ee9017c7597
equal deleted inserted replaced
32502:03f7450aec42 32503:1478c9130534
     1 /*
     1 /*
     2  * Copyright (c) 2007,2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 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
   128 
   128 
   129     protected native void connect0(InetAddress address, int port) throws SocketException;
   129     protected native void connect0(InetAddress address, int port) throws SocketException;
   130 
   130 
   131     protected native void disconnect0(int family);
   131     protected native void disconnect0(int family);
   132 
   132 
       
   133     native int dataAvailable();
       
   134 
   133     /**
   135     /**
   134      * Perform class load-time initializations.
   136      * Perform class load-time initializations.
   135      */
   137      */
   136     private native static void init();
   138     private native static void init();
   137 }
   139 }