How to use Unix domain sockets with Java / Scala?

What is the best way to use Unix domain sockets from Scala?

I found a Java library called JUDS , but it does not allow me to send file descriptors by socket --- the reason I want to use Unix domain sockets in the first place.

JUDS reading refers to a competing library called J-BUDS, but I cannot find it anywhere.

I could add this function to JUDS myself, but I would prefer not to reinvent the wheel if it is already in the jar file elsewhere.

+6
source share
1 answer

http://download.oracle.com/javase/6/docs/api/java/net/Socket.html

By "file descriptors" do you mean objects of the java.util.File class? ... or C-style "FILE *"? (IIRC)

The latter will be tied to a specific OS instance, so I don’t think you want to transfer it to a (possibly) different machine.

+1
source

Source: https://habr.com/ru/post/887054/


All Articles