jdk/src/java.base/share/classes/java/net/DatagramSocketImpl.java
changeset 27078 39275d6a8cac
parent 25859 3317bb8137f4
child 28852 a581c7868768
equal deleted inserted replaced
27077:c943ca4a3380 27078:39275d6a8cac
    61 
    61 
    62     DatagramSocket getDatagramSocket() {
    62     DatagramSocket getDatagramSocket() {
    63         return socket;
    63         return socket;
    64     }
    64     }
    65 
    65 
       
    66     int dataAvailable() {
       
    67         // default impl returns zero, which disables the calling
       
    68         // functionality
       
    69         return 0;
       
    70     }
       
    71 
    66     /**
    72     /**
    67      * Creates a datagram socket.
    73      * Creates a datagram socket.
    68      * @exception SocketException if there is an error in the
    74      * @exception SocketException if there is an error in the
    69      * underlying protocol, such as a TCP error.
    75      * underlying protocol, such as a TCP error.
    70      */
    76      */