UNIX domain datagram support in Java

Michael McMahon michael.x.mcmahon at oracle.com
Wed Nov 30 12:57:11 UTC 2022


Hi,

There is no plan to do this currently. But, I created a bug issue to 
track it at (https://bugs.openjdk.org/browse/JDK-8297837).

It might make sense to do it some time for completeness and the fact 
that no new API would be required to support it.

- Michael.

On 30/11/2022 12:19, Fouad Almalki wrote:
> Hi,
>
> Is there a plan to support UNIX domain datagram in Java?
>
> It seems thathttps://openjdk.org/jeps/380  does not support datagram.
> JEP 380: Unix-Domain Socket Channels<https://openjdk.org/jeps/380>
> Summary. Add Unix-domain (AF_UNIX) socket support to the socket channel and server-socket channel APIs in the java.nio.channels package.Extend the inherited channel mechanism to support Unix-domain socket channels and server socket channels.. Goals. Unix-domain sockets are used for inter-process communication (IPC) on the same host. They are similar to TCP/IP sockets in most respects, except ...
> openjdk.org
>
> One of the usages is to be able to notify systemd service manager about start-up completion without the need of JNI to invoke a system call.
>
> https://github.com/quarkusio/quarkus/issues/29107#issuecomment-1328173833
> [https://opengraph.githubassets.com/174176286ca434859f5f405db6d4426b554154d36f38347e41b3b3cbd3542168/quarkusio/quarkus/issues/29107]<https://github.com/quarkusio/quarkus/issues/29107#issuecomment-1328173833>
> Integrate Linux systemd-notify with Quarkus · Issue #29107 · quarkusio/quarkus<https://github.com/quarkusio/quarkus/issues/29107#issuecomment-1328173833>
> Description Systemd is a popular service manager on Linux OS that manages starting/stopping services. When a service unit file is configured to be of type notify: [Service] Type=notify it is expect...
> github.com
>>>
>
> Thanks,
> Fouad Almalki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20221130/a1d90cbf/attachment.htm>


More information about the nio-dev mailing list