Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230211

Prepare DatagramSocket for alternative DatagramSocketImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 14
    • core-libs
    • None

      Evaluate how java.net.DatagramSocket can be simplified to make it a lot easier to replace the underlying implementation.
      Among other things, the following should be considered and evaluated:

      1. Drop the support for DatagramSocketImpl implementations that are compiled with JDK 1.3 or older.

      2. Drop the filtering when the DatagramSocket is connected. Instead, DatagramSocketImpl.connect should flush the read queue after the address association is setup.

      3. Change DatagramSocket.recieve so that the security manager case when not connected always receives into a temporary buffer. This will eliminate the need to peek ahead.

      Other preparatory work that could make it easier to provide an alternative implementation should also be considered.

            pconcannon Patrick Concannon (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: