开发者

How do I use Unix domain sockets from Java/Scala?

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 fir开发者_运维知识库st 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜