Home:ALL Converter>UNIX Domain Socket in Java

UNIX Domain Socket in Java

Ask Time:2010-11-05T01:31:06         Author:korrawit

Json Formatter

I see these threads UNIX socket implementation for Java? and http://forums.sun.com/thread.jspa?threadID=713266.

The second link says that Java already supports UNIX Domain Socket. If that's true what class do I need to implement from Java?.

From the first link, it says that Java does not support UNIX Domain Socket. If you need UNIX Domain Socket you must use a 3rd-party library.

So, which is it?

Author:korrawit,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/4099432/unix-domain-socket-in-java
Leo Gomes :

Netty also supports it since version 4.0.26: https://github.com/netty/netty/pull/3344",
2015-04-17T13:48:54
Christian Kohlschütter :

You could use junixsocket: https://github.com/kohlschutter/junixsocket\n\nIt provides AF-UNIX support via a JNI library, utilizing the Java Socket API. It even allows connecting to MySQL from Java (Connector/J) via Unix sockets.",
2011-05-10T18:23:49
nogudnik :

Java cannot create or access Unix Domain Sockets without using a 3rd party (native) library. The last comment on the second link above mentions this.\n\nThe first link has some good (and correct) information on it.",
2010-11-04T21:03:16
yy