All Classes and Interfaces
Class
Description
A
SocketException that may be thrown upon some "address already in use" condition from
native code (e.g., EADDRINUSE is returned).A
SocketException that may be thrown upon some "address unavailable" condition from
native code (e.g., EADDRNOTAVAIL is returned).Describes an address family supported by junixsocket.
The implementation-specifics for a given address family implementation.
junixsocket-internal variant of
java.util.Consumer, to allow compiling junixsocket-common
with retrolambda for Java 1.7.A
DatagramChannel implementation that works with junixsocket.A
DatagramSocket implementation that works with junixsocket.A reference to the constructor of an
AFDatagramSocket subclass.A
DatagramSocketImpl implemented by junixsocket.An
AFSocketAddress for unknown socket types.An
InputStream for AFSocket, etc.A supplier that can throw an IOException.
The key to accessing to
AFNaming instances.An
OutputStream for AFSocket, etc.A
Pipe, natively implemented.A junixsocket-based protocol family.
A wrapper for RMI registries, both remote and local, to allow for a clean removal of bound
resources upon shutdown.
The
AFRMIService assigns and keeps track of anonymous ports, among other things.An
RMISocketFactory that supports AFSockets.A lease on a registered port; closing the lease will return the port.
Service-provider class for junixsocket selectors and selectable channels.
The server part of a junixsocket socket.
The constructor of the concrete subclass.
A selectable channel for stream-oriented listening sockets.
Some connector that is able to create
AFServerSockets bound to a given
AFSocketAddress.junixsocket's base implementation of a
Socket.The reference to the constructor of an
AFSocket subclass.Some
SocketAddress that is supported by junixsocket, such as AFUNIXSocketAddress.A reference to the constructor of an AFSocketAddress subclass.
The implementation-specifics for a given
AFSocketAddress subclass implementation.Helps converting an internet "hostname" to an
AFSocketAddress.Describes junixsocket capabilities the current environment (system platform, native library,
etc.) may or may not support.
A selectable channel for stream-oriented connecting sockets.
A reference to a method that provides an
AFSocket instance.Some connector that is able to connect to a given
AFSocketAddress.Defines certain methods that all junixsocket socket implementations share and extend beyond the
standard socket API.
The base for a SocketFactory that connects to UNIX sockets.
A socket factory that always connects to a fixed socket address, no matter what.
junixsocket-based
SocketImpl.Placeholder for protocol-specific code that resides in the native library.
A special socket option supported by some junixsocket-based implementation.
A pair of sockets.
Describes the "protocol" part of a socket.
A base implementation for a simple, multi-threaded socket server using
AFSockets.Describes the "type" of a socket.
Marker interface that combines junixsocket-based
SocketChannels, Sockets,
DatagramChannels and DatagramSockets.Marker interface that combines junixsocket-based
SocketChannels, DatagramChannels
or ServerSocketChannels.Marker interface that combines junixsocket-based
SocketChannels, Sockets,
DatagramChannels and DatagramSockets, as well as ServerSockets and
ServerSocketChannels.A
DatagramChannel implementation that works with AF_SYSTEM sockets.A
DatagramSocket implementation that works with AF_SYSTEM sockets.Describes the protocol families supported by junixsocket-afsystem.
Service-provider class for junixsocket selectors and selectable channels.
The server part of an
AF_SYSTEM socket.A selectable channel for stream-oriented listening sockets.
Implementation of an
AF_SYSTEM socket.An
AFSocketAddress for AF_SYSTEM sockets.The AF_SYSTEM system address.
A selectable channel for stream-oriented connecting sockets.
Defines certain methods that all junixsocket AF_SYSTEM socket implementations share and extend
beyond the standard socket API.
The base for a SocketFactory that connects to AF_SYSTEM sockets.
AF_SYSTEM-specific code that resides in the native library.
AF_SYSTEM-specific socket options.
A pair of sockets.
A
DatagramChannel implementation that works with AF_TIPC sockets.A
DatagramSocket implementation that works with AF_TIPC sockets.The TIPC-specific DestName response that may be included as ancillary data.
The TIPC-specific error info response that may be included as ancillary data.
Some TIPC error code.
A TIPC group request.
Some flags used in the group request.
Describes the protocol families supported by junixsocket-tipc.
Service-provider class for junixsocket selectors and selectable channels.
The server part of an
AF_TIPC socket.A selectable channel for stream-oriented listening sockets.
Implementation of an
AF_TIPC socket.An
AFSocketAddress for TIPC sockets.The TIPC address type.
The TIPC visibility scope.
A selectable channel for stream-oriented connecting sockets.
Defines certain methods that all junixsocket AF_TIPC socket implementations share and extend
beyond the standard socket API.
The base for a SocketFactory that connects to TIPC sockets.
Always connects sockets to the given TIPC type and instance.
TIPC-specific code that resides in the native library.
TIPC-specific socket options.
The TIPC message importance.
A pair of sockets.
A TIPC topology event received by the
AFTIPCTopologyWatcher as a result of an
AFTIPCTopologySubscription.Some TIPC error code.
An "event subscription" to be used with
AFTIPCTopologyWatcher.Some flags used in the subscription request.
Provides access to the TIPC topology service.
Connect to mysql databases (and compatibles) using UNIX domain sockets.
Connect to mysql databases (and compatibles) using UNIX domain sockets.
Demonstrates how to connect to a local MySQL server.
A
DatagramChannel implementation that works with AF_UNIX Unix domain sockets.A
DatagramSocket implementation that works with AF_UNIX Unix domain sockets.The
AFUNIXSocket-compatible equivalent of Naming.Describes the protocol family supported by
AFUNIXSocketAddress etc.A wrapper for RMI registries, both remote and local, to allow for a clean removal of bound
resources upon shutdown.
An
RMISocketFactory that supports AFUNIXSockets.Service-provider class for junixsocket selectors and selectable channels.
The server part of an AF_UNIX domain socket.
A selectable channel for stream-oriented listening sockets.
Implementation of an AF_UNIX domain socket.
Describes an
InetSocketAddress that actually uses AF_UNIX sockets instead of AF_INET.Deprecated.
A selectable channel for stream-oriented connecting sockets.
AF_UNIX socket credentials.
Defines certain methods that all junixsocket AF_UNIX socket implementations share and extend
beyond the standard socket API.
The base for a SocketFactory that connects to UNIX sockets.
A socket factory that handles a custom hostname ("localhost", by default, and configured by the
system property "org.newsclub.net.unix.socket.hostname"), forwarding all other
requests to the fallback
SocketFactory.A socket factory that handles a custom hostname ("junixsocket.localhost", by default, and
configured by the system property "org.newsclub.net.unix.socket.hostname"),
forwarding all other requests to the fallback
SocketFactory.A socket factory that handles special host names formatted as file:// URIs.
A pair of sockets.
Deprecated.
A
DatagramChannel implementation that works with AF_VSOCK sockets.A
DatagramSocket implementation that works with AF_VSOCK sockets.Describes the protocol families supported by junixsocket-vsock.
Provides access to AF_VSOCK connections that aren't directly accessible but exposed via a
proxying/multiplexing Unix domain socket.
Provides access to AF_VSOCK connections that aren't directly accessible but exposed via a
proxying/multiplexing Unix domain socket.
Service-provider class for junixsocket selectors and selectable channels.
The server part of an
AF_VSOCK socket.A selectable channel for stream-oriented listening sockets.
Implementation of an
AF_VSOCK socket.An
AFSocketAddress for VSOCK sockets.A selectable channel for stream-oriented connecting sockets.
Defines certain methods that all junixsocket AF_VSOCK socket implementations share and extend
beyond the standard socket API.
The base for a SocketFactory that connects to VSOCK sockets.
Always connects sockets to the given VSOCK type and instance.
VSOCK-specific code that resides in the native library.
VSOCK-specific socket options.
A pair of sockets.
A
SocketException indicating that a socket connection was broken ("broken pipe").A wrapping
SNIMatcher that calls a callback with the checked SNIServerName and
match status (true or false).Callback that is called upon
SNIMatcher.matches(SNIServerName).A multi-threaded unix socket server that implements a TCP-style character generator compliant
with RFC864.
This wrapper (along with the Java 8-specific counterpart in src/main/java8) allows us to
implement cleanup logic for objects that are garbage-collectable/no longer reachable.
A pair of two closeable items.
A set of
Closeables that can be closed at once.An
ObjectPool implemented using ConcurrentLinkedQueue.A
SocketException indicating that a socket was not bound/accepting requests when
attempting to connect.A
SocketException indicating that a socket connection was reset.An implementation of
RMIClientSocketFactory.An implementation of
RMIServerSocketFactory.A demo program to configure and run several
AFSocket client demos from the command line.Just a helper class to simplify controlling the demo from the command line.
The entrypoint class for the jpackage or jlink demo binary.
Echos any incoming data.
A multi-threaded unix socket server that simply echoes all input, byte per byte.
Supplies a FileChannel with certain properties (read-only, write-only, read-write); to be used
mostly with
FileDescriptorCast.Supplies a read-only
FileChannel.Supplies a read-write
FileChannel.Supplies a write-only
FileChannel.Something that has a
FileDescriptor.Provides object-oriented access to file descriptors via
InputStream, Socket,
etc., depending on the file descriptor type.An
X509TrustManager that may intercept CertificateExceptions.A very simple "hello world" service.
The implementation of the very simple
HelloWorld service.Hostname and port.
An ignorant
X509TrustManager that doesn't check certificates at all.A
SocketException that may be thrown upon some "invalid argument" being passed into
native code (i.e., EINVAL is returned).A
SocketException that may be thrown upon some "invalid" state, mostly detected in native
code.Some IP protocol-related helper methods.
Thrown when a known Java/JRE/JDK bug was encountered.
Some mapped memory.
Internal class, to be used by junixsocket-memory only.
Specific "memory seal" operations.
Apache Mina-based Time server, modified to use junixsocket.
Holds an object.
A "named integer", usually used for constants.
Marks a subclass that provides a method
"public static T ofValue(int v)" that allows
casting an integer to this type via reflection.Constructor for "undefined" values.
Describes a 32-bit bitmask that supports named flags.
Creates a new instance.
Creates a
NanoHTTPD server, bound to /tmp/junixsocket-http-server.sock.Marker class to find native libraries in the classpath.
Marker class to find native libraries in the classpath.
A
SocketException indicating that a socket connection was not possible because the
destination network is unreachable.A
SocketException that may be thrown upon some "no such device" condition from native
code (e.g., ENODEV is returned).A
SocketException indicating that a socket was not bound when attempting to read or
write.A
SocketException indicating that a socket was not connected when attempting to read or
write.A multi-threaded unix socket server that simply reads all input, byte per byte, not doing
anything else with it.
A pool of objects.
A lease for an object (obtained via
ObjectPool.Lease.get()); working with the object is only permitted
before ObjectPool.Lease.close().Sanitizes a previously leased object so it can be reused by the pool.
Supplies a leased object.
Connects to
/tmp/junixsocket-http-server.sock and performs an http request over that
socket, using the OkHttp HTTP client library.Connects to TIPC service 8080.1 and performs an HTTP request over that socket, using the
OkHttp HTTP client library.
An
IOException that may be thrown upon some "unsupported operation" condition from native
code, using a non-socket file handle, (e.g., ENOTSUP) is returned.A
SocketException that may be thrown upon some "unsupported operation" condition from
native code (e.g., ENOTSUP, EOPNOTSUPP, EPROTONOSUPPORT, ESOCKTNOSUPPORT, EPFNOSUPPORT,
EAFNOSUPPORT is returned).Demonstrates how to connect to a local PostgreSQL server via unix sockets.
A client that just reads and echoes the data to stdout.
A client that reads the contents of file descriptors that are sent as ancillary messages.
A simple bidirectional Unix socket client that reads from/writes to stdin/stdout.
A resource that can be exposed remotely, and closed locally as well as remotely.
The default implementation of
RemoteCloseable.A generic (unspecific)
FileDescriptor reference.A wrapper that allows a
FileDescriptor be sent via RMI over AF_UNIX sockets.A specialized subclass of
RemoteFileDescriptorBase, specifically for
FileInputStreams.A specialized subclass of
RemoteFileDescriptorBase, specifically for
FileOutputStreams.Information about the remote connection.
A multi-threaded unix socket server that simply reads all input, byte per byte, not doing
anything else with it.
Some shared memory.
Options for
SharedMemorys.A mutually exclusive lock, which may or may not be reentrant.
A simple RMI client.
A simple RMI client.
A very simple RMI server.
A simple demo client.
A simple demo server.
Helper class to simplify retrieving the requested SNI hostname sent from an SSL client to an SSL
server.
A filter that takes a
SocketAddress, and potentially changes it, or throws an exception
if certain criteria are met.A
SocketException indicating that a socket was closed or is not open for other reasons.A base implementation for a simple, multi-threaded socket server.
A demo program to configure and run several
SocketServer demos from the command line.Helper class to simplify building
SSLContext instances.A simple SSL demo client.
SSL-over-UNIX sockets demo.
A simple SSL demo server.
Utility class to work with
SSLParameters.Internal helper class to dump stack traces when deemed appropriate.
Demonstrates how to read files via FileDescriptors that are exchanged via RMI.
Demonstrates how to read/write files via FileDescriptors that are exchanged via RMI.
The
StreamServer's RMI service.An implementation of
StreamService.Helper class to support certain Thread-specific features.
Declares some operation "unsafe", which is guarded via
AFSocketCapability.CAPABILITY_UNSAFE.A wrapping
X509TrustManager that verifies each individual certificate in a chain, in
addition to the successful validation by the wrapped X509TrustManager.Well-known AF_SYSTEM control names.
A very simple "world" service.
The implementation of the very simple
World service.A multi-threaded unix socket server that simply writes null-bytes, and does not attempt to read
anything.
SocketServerorAFSocketServer