Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237352 Update DatagramSocket to add support for joining multicast groups
  3. JDK-8272357

Release Note: DatagramSocket Can Be Used Directly to Join Multicast Groups

    XMLWordPrintable

    Details

      Description

      `java.net.DatagramSocket` has been updated in this release to add support for joining multicast groups. It now defines `joinGroup` and `leaveGroup` methods to join and leave multicast groups. The class level API documentation of `java.net.DatagramSocket` has been updated to explain how a plain `DatagramSocket` can be configured and used to join and leave multicast groups.

      This change means that the `DatagramSocket` API can be used for multicast applications without needing to use the legacy `java.net.MulticastSocket` API. The `MulticastSocket` API works as before, although most of its methods are deprecated.

      More information on the rationale of this change can be seen in the CSR JDK-8260667.

        Attachments

          Activity

            People

            Assignee:
            dfuchs Daniel Fuchs
            Reporter:
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: