RFR 8241305: Add protocol specific factory creation methods to SocketChannel and ServerSocketChannel
Michael McMahon
michael.x.mcmahon at oracle.com
Tue May 5 11:16:54 UTC 2020
Hi,
Could I get the following change reviewed please?
The change is to add new static factory creation methods
to java.nio.channels.SocketChannel and java.nio.channels.ServerSocketChannel
which take a java.net.ProtocolFamily. These are basically the same as
a similar method that was added to DatagramChannel back in 1.7
and which allow the creation of IPv4 only channels or IPv4/IPv6.
The change will also facilitate the 'Unix domain' protocol family work
in JEP-380 [4]
The webrev is at [1] The CSR for the spec change is at [2]
and the bugid is [3].
Thanks,
Michael.
[1] http://cr.openjdk.java.net/~michaelm/8241305/webrev.1/
[2] https://bugs.openjdk.java.net/browse/JDK-8242926
[3] https://bugs.openjdk.java.net/browse/JDK-8241305
[4] https://openjdk.java.net/jeps/380
More information about the nio-dev
mailing list