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

DatagramSocket.setOption/getOption/supportedOption should support multicast options

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      DatagramSocket can be used to send multicast datagrams but surprisingly it's not possible to set the IP_MULTICAST_IF or IP_MULTICAST_TTL socket options with its setOption method.

      We should remove this artificial limitation so that DatagramSocket can be implemented on DatagramChannel. Removing this restriction will also simplify PlainDatagramSocketImpl.

        Attachments

          Activity

            People

            • Assignee:
              pconcannon Patrick Concannon
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: