JDK-4545877 : Add functionality to MulticastSocket to expose group address
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-12-03
  • Updated: 2002-06-13
  • Resolved: 2002-06-13
Related Reports
Duplicate :  
Description

Name: nt126004			Date: 12/03/2001


java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)

If MulticastSocket.joinGroup is successful, there is no subsequent method that
can be used to obtain the address of the group that has been joined. (Consider
TimeToLive, which is both gettable and settable, or the LocalAddress/LocalPort
properties of DatagramSocket.) 

Furthermore, there is no documentation that
defines whether joinGroup is cummulative (can more than one group be joined),
exclusive (only one group can be joined at a time per MulticastSocket instance)
and there is no explanation as to what exceptions would be thrown if additional
joins were illegal.
(Review ID: 136068) 
======================================================================

Comments
WORK AROUND Name: nt126004 Date: 12/03/2001 There is no way to obtain the information about the group address from the MulticastSocket object. ======================================================================
11-06-2004

EVALUATION MulticastSocket specification needs to be updated to indicate that joins are cummulative. In addition a method to return an enumeration of groups that the socket is a member may be useful. Will examine for tiger. ###@###.### 2001-12-04 MulticastSocket issues for tiger are being tracked in 4701650. ###@###.### 2002-06-13
04-12-2001