Reputation: 47062
What's the best way of using Unix domain sockets from Scala?
I've found a Java library called JUDS, but it doesn't appear to allow me to send file descriptors over the socket --- the reason I want to use Unix domain sockets in the first place.
The JUDS readme refers to a competing library called J-BUDS, but I cannot find this anywhere.
I could add the feature to JUDS myself, but I'd rather I'd rather not reinvent the wheel if it's already in a jar file elsewhere.
Upvotes: 6
Views: 2582
Reputation: 820
http://download.oracle.com/javase/6/docs/api/java/net/Socket.html
By "file descriptors" do you mean objects of the class java.util.File? ...or C-style "FILE *"? (IIRC)
The latter would be tied to the particular instance of the OS, so I wouldn't think you would want to move that to (possibly) another machine.
Upvotes: 1