title: Create DatagramPacket with InetSocketAddress, missing constructor
body: <p>I'm trying to send data with Mutlicast to multiple clients.
  I looked at the docs: <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/MulticastSocket.html#setNetworkInterface(java.net.NetworkInterface)" rel="nofollow noreferrer">https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/MulticastSocket.html#setNetworkInterface(java.net.NetworkInterface)</a></p>
  <pre><code>// join a Multicast group and send the group salutations
   ...
   String msg = &quot;Hello&quot;;
   InetAddress mcastaddr = InetAddress.getByName(&quot;228.5.6.7&quot;);
   InetSocketAddress group = new InetSocketAddress(mcastaddr, port);
   NetworkInterface netIf = NetworkInterface.getByName(&quot;bge0&quot;);
   MulticastSocket s = new MulticastSocket(6789);
  
   s.joinGroup(group, netIf);
   byte[] msgBytes = msg.getBytes(StandardCharsets.UTF_8);
   DatagramPacket hi = new DatagramPacket(msgBytes, msgBytes.length,
                                          group, 6789);
  </code></pre>
  <p>My problem is the last line. The class <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/DatagramPacket.html" rel="nofollow noreferrer">DatagramPacket</a> doesn't have such constructor.
  Is this a mistake in the Docs or am I dumb?</p>