Unix domain sockets (UDS, AF_UNIX) in System.inheritedChannel() and elsewhere in Java

Alan Bateman Alan.Bateman at oracle.com
Sat Jul 20 14:26:38 UTC 2019


On 19/07/2019 17:10, Alan Bateman wrote:
> :
>
> No objection to exploring it again but I think it should be prototyped 
> as a JDK-specific API, probably jdk.net module. This is the approach 
> we have been discussing on nio-dev for the RDMA socket API. In terms 
> of API then introducing a SocketAddress sub-class for Unix domain 
> sockets looks right, although it should probably be created with a 
> Path or String rather than a byte array. For the RDMA sockets we have 
> a factory class to create SocketChannel or ServerSocketChannels that 
> will probably work here too.
One other option to point out is the jdk.nio.Channels API which can be 
used to create a SelectableChannel to a file descriptor. This may be 
used to experiment with too as it would allow you to create a channel 
that you could use with the existing selector implementations.

-Alan.


More information about the nio-dev mailing list