RFR 8245194: Unix domain socket channel implementation

Chris Hegarty chris.hegarty at oracle.com
Fri Jul 10 11:02:18 UTC 2020



> On 10 Jul 2020, at 11:25, Michael McMahon <michael.x.mcmahon at oracle.com> wrote:
>> ...
> "public ProtocolFamily getProtocolFamily()"
> 
> I think a channel will always have a ProtocolFamily. So, it shouldn't need to be Optional<>
> 
> The value on the no-args call depends on the preferIPv4Stack setting. INET if set INET6 if not,
> depending on which of IPv4/IPv6 are supported obviously. Do you think all of this would need
> to be documented explicitly?
> 
I would not specify or document any of this, other than; "Internet protocol socket” is one of INET or INET6, and “unix domain socket” is UNIX. I think that is sufficient.

-Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200710/397595e6/attachment.htm>


More information about the nio-dev mailing list