< prev index next >

src/java.base/share/classes/java/net/DatagramSocketImpl.java

Print this page
M DatagramSocketImpl.java


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.net;
  27 
  28 import java.io.FileDescriptor;
  29 import java.io.IOException;
  30 import java.util.Objects;
  31 import java.util.Set;
  32 
  33 /**
  34  * Abstract datagram and multicast socket implementation base class.
  35  * @author Pavani Diwanji
  36  * @since  1.1
  37  */
  38 
  39 public abstract class DatagramSocketImpl implements SocketOptions {
  40 
  41     /**
  42      * The local port number.
  43      */
  44     protected int localPort;
  45 
  46     /**
  47      * The file descriptor object.
  48      */
  49     protected FileDescriptor fd;
  50 
  51     int dataAvailable() {
  52         // default impl returns zero, which disables the calling
  53         // functionality
  54         return 0;
  55     }
  56 
  57     /**
  58      * Creates a datagram socket.




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.net;
  27 
  28 import java.io.FileDescriptor;
  29 import java.io.IOException;
  30 import java.util.Objects;
  31 import java.util.Set;
  32 
  33 /**
  34  * Abstract datagram and multicast socket implementation base class.
  35  * @author Pavani Diwanji
  36  * @since  1.1
  37  */
  38 @Deprecated(since="15")
  39 public abstract class DatagramSocketImpl implements SocketOptions {
  40 
  41     /**
  42      * The local port number.
  43      */
  44     protected int localPort;
  45 
  46     /**
  47      * The file descriptor object.
  48      */
  49     protected FileDescriptor fd;
  50 
  51     int dataAvailable() {
  52         // default impl returns zero, which disables the calling
  53         // functionality
  54         return 0;
  55     }
  56 
  57     /**
  58      * Creates a datagram socket.


< prev index next >