RFR 8245194: Unix domain socket channel implementation

Daniel Fuchs daniel.fuchs at oracle.com
Thu Jul 9 15:27:11 UTC 2020


Hi Chris,

I haven't reviewed the code yet, just pouncing on your comment ;-)

On 09/07/2020 15:14, Chris Hegarty wrote:
> What is the signature of this method? `Optional<ProtocolFamily> 
> protocolFamily()` - or something else? If not optional ( or null ), then 
> what is the family of a channel created with the no-args open method? We 
> had some offline discussion about UNSPEC, and if we add this method then 
> it could be a reason to add an UNSPEC StandardProtocolFamily.
> 

UNSPEC would be clearly unsuitable in this case.

The protocolFamily should be either INET or INET6 depending on whether 
the underlying socket that was created is IPv4 only or dual.

best regards,

-- daniel


More information about the nio-dev mailing list