Unix Domain Sockets in Java (AF_UNIX)
Java C HTML
Clone or download
kohlschuetter Merge pull request #12 from rraptorr/log4j
Move log4j dependency to junixsocket-demo
Latest commit 4fc476b Mar 27, 2015

README.md

junixsocket

junixsocket is a Java/JNI library that allows the use of Unix Domain Sockets (AF_UNIX sockets) from Java.

Why it's cool

  • In contrast to other implementations, junixsocket extends the Java Sockets API (java.net.Socket, java.net.SocketAddress, etc.)
  • Supports RMI over AF_UNIX
  • Can connect to local MySQL server via Unix domain sockets (provides a AFUNIXDatabaseSocketFactory for Connector/J).
  • Apache 2.0 licensed.

Licensing

junixsocket has been written by Christian Kohlschütter. It is released under the Apache 2.0 License.

Commercial support is available through [http://www.kohlschutter.com/ Kohlschütter Search Intelligence].

Changelog

Noteworthy changes

  • (2014-09-29) junixsocket 2.0.1

  • Bugfix: Added byte array bounds checking to read/write methods.

  • Fix C compiler warnings

  • Remove synchronized byte[] array for single-byte reads/writes.

  • (2014-09-28) junixsocket 2.0.0

  • Moved from Google Code to GitHub.

  • Now uses Maven as the build system, code is distributed to the Maven Central repository.

  • C code is built using nar-maven-plugin

  • JNI libraries are loaded using native-lib-loader

See the commit log for details.

For 1.x releases, please see https://code.google.com/p/junixsocket.

Documentation

For now, please refer to the Wiki on Google Code.

Quick links:

Related Work

  • JUDS (LGPL, no RMI, not using Java Sockets API)
  • J-BUDS (LGPL, no RMI, not using Java Sockets API, orphaned)
  • gnu.net.local (GPL with Classpath exception, no RMI, not using Java Sockets API, orphaned) -- Archive mirror.