summaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/net/MulticastSocket.java
AgeCommit message (Collapse)AuthorLines
2021-03-238263080: Obsolete relationship in MulticastSocket API documentation.Daniel Fuchs-11/+18
Reviewed-by: alanb
2021-02-088237352: Update DatagramSocket to add support for joining multicast groupsDaniel Fuchs-95/+74
Reviewed-by: alanb
2020-06-098243999: DatagramSocket and MulticastSocket constructors don't specify how a ↵Patrick Concannon-4/+12
null InetAddress is handled This fix clarifies the behaviours of constructors from DatagramSocket and MulticastSocket when no address or a null address is supplied. Reviewed-by: dfuchs
2020-05-128241072: Reimplement the Legacy DatagramSocket APIPatrick Concannon-266/+28
Replace the underlying implementations of the java.net.DatagramSocket and java.net.MulticastSocket APIs with simpler and more modern implementations that are easy to maintain and debug. Co-authored-by: Alan Bateman <alan.bateman@oracle.com> Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com> Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com> Reviewed-by: alanb, chegar, dfuchs
2020-04-228243408: Inconsistent Exceptions are thrown by MulticastSocket when sending ↵Patrick Concannon-0/+3
a DatagramPacket to port 0 This fix adds a check for port == 0 to MulticastSocket's 2-arg send method to ensure a consistent exception is thrown across platforms Reviewed-by: dfuchs
2020-04-088242230: Whitespace typos, relaxed javadoc, formattingPavel Rappo-2/+2
Reviewed-by: darcy, igerasim
2020-04-038241988: DatagramSocket incorrectly caches the first set of socket optionsChris Hegarty-20/+0
Reviewed-by: msheppar, dfuchs, alanb
2020-03-208241014: Miscellaneous typos in documentation commentsPavel Rappo-1/+1
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
2020-01-298237896: MulticastSocket should link to DatagramChannel as an alternative ↵Daniel Fuchs-0/+10
for multicasting MulticastSocket API documentation now includes some links to DatagramChannel. Reviewed-by: alanb
2020-01-208236105: Behaviors of DatagramSocket/DatagramChannel::socket send methods ↵Patrick Concannon-3/+6
are not always consistent DatagramSocket and MulticastSocket changed to throw IllegalArgumentException if not connected and passed a packet containing a port out of range Reviewed-by: chegar, dfuchs
2020-01-198236925: (dc) Upgrade DatagramChannel socket adaptor to extend MulticastSocketAlan Bateman-0/+5
Reviewed-by: dfuchs
2020-01-178237075: @since tag missing from DatagramSocket and MulticastSocket methodsPatrick Concannon-1/+3
Methods from DatagramSocket and MulticastSocket added in JDK1.2 do not have their @since tags. This fix adds them in Reviewed-by: alanb, chegar, dfuchs
2019-12-108235141: Specify the required standard socket options for the socket types ↵Daniel Fuchs-0/+40
in the java.net package Reviewed-by: alanb, chegar
2019-12-098233191: MulticastSocket joinGroup/leaveGroup do not specify their behavior ↵Patrick Concannon-13/+22
when the outgoing interface has not been set Clarifies the behaviour of 2-arg joinGroup/leaveGroup methods when null is passed for the NetworkInteface argument. The fix also clarifies what is returned by getInterface() and getNetworkInterface() methods when no previous NetworkInterface has been set. Reviewed-by: alanb, chegar, dfuchs
2019-12-098233319: Deprecate MulticastSocket methods that operate on java.net.InetAddressJulia Boes-87/+103
Deprecate any method that operates on InetAddress as well as getLoopbackMode and setLoopbackMode Reviewed-by: chegar, dfuchs, alanb
2019-11-288233307: MulticastSocket getOption(IP_MULTICAST_IF) returns interface when ↵Patrick Concannon-1/+1
not set The MulticastSocket method getOption has been changed to conform to the behavior described in StandardSocketOptions.IP_MULTICAST_IF. Reviewed-by: chegar, dfuchs
2019-11-218234335: Remove line break in class declaration in java.baseJulia Boes-2/+1
Remove line break in class declarations where applicable Reviewed-by: rriggs, lancea
2019-11-188233141: DatagramSocket.send doesn't specify exception thrown when no target ↵Daniel Fuchs-9/+20
address DatagramSocket and MulticastSocket send methods are changed to throw IllegalArgumentException if no target address can be determined. Reviewed-by: alanb
2019-09-208230648: Replace @exception tag with @throws in java.baseJulia Boes-38/+38
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
2019-03-138220585: Incorrect code in MulticastSocket sample codeArthur Eubanks-2/+3
Sample code shows that String.length() can be passed to a DatagramPacket along with String.getBytes(), but is incorrect for non-ASCII Strings. Reviewed-by: martin, chegar
2017-09-128187443: Forest Consolidation: Move files to unified layoutErik Joelsson-0/+735
Reviewed-by: darcy, ihse