A B C E F G H I M N O R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- add(Closeable) - Method in class org.newsclub.net.unix.Closeables
-
Adds the given closeable.
- add(WeakReference<Closeable>) - Method in class org.newsclub.net.unix.Closeables
-
Adds the given closeable, but only using a weak reference.
- addCloseable(Closeable) - Method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Registers a
Closeablethat should be closed when this socket is closed. - addCloseable(Closeable) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Registers a
Closeablethat should be closed when this socket is closed. - addressFromHost(String, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
-
Translates a "host" string (and port) to an
AFUNIXSocketAddress. - addressFromHost(String, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
- addressFromHost(String, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.SystemProperty
- addressFromHost(String, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
- AFUNIXServerSocket - Class in org.newsclub.net.unix
-
The server part of an AF_UNIX domain socket.
- AFUNIXServerSocket() - Constructor for class org.newsclub.net.unix.AFUNIXServerSocket
-
Constructs a new, unconnected instance.
- AFUNIXSocket - Class in org.newsclub.net.unix
-
Implementation of an AF_UNIX domain socket.
- AFUNIXSocketAddress - Class in org.newsclub.net.unix
-
Describes an
InetSocketAddressthat actually uses AF_UNIX sockets instead of AF_INET. - AFUNIXSocketAddress(byte[]) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
-
Creates a new
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given byte sequence. - AFUNIXSocketAddress(byte[], int) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
-
Creates a new
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given byte sequence, assigning the given port to it. - AFUNIXSocketAddress(File) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
-
Creates a new
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given file. - AFUNIXSocketAddress(File, int) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
-
Creates a new
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given file, assigning the given port to it. - AFUNIXSocketCapability - Enum in org.newsclub.net.unix
-
Describes junixsocket capabilities the current environment (system platform, native library, etc.) may or may not support.
- AFUNIXSocketCredentials - Class in org.newsclub.net.unix
-
AF_UNIX socket credentials.
- AFUNIXSocketFactory - Class in org.newsclub.net.unix
-
The base for a SocketFactory that connects to UNIX sockets.
- AFUNIXSocketFactory() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory
- AFUNIXSocketFactory.FactoryArg - Class in org.newsclub.net.unix
-
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. - AFUNIXSocketFactory.SystemProperty - Class in org.newsclub.net.unix
-
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. - AFUNIXSocketFactory.URIScheme - Class in org.newsclub.net.unix
-
A socket factory that handles special host names formatted as file:// URIs.
B
- bind(SocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Binds this
AFUNIXSocketto the given bindpoint. - bind(SocketAddress, int) - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- bindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new AF_UNIX
ServerSocketthat is bound to the givenAFUNIXSocketAddress.
C
- CAPABILITY_ABSTRACT_NAMESPACE - org.newsclub.net.unix.AFUNIXSocketCapability
-
Socket addressing supports the abstract namespace (Linux/Windows).
- CAPABILITY_ANCILLARY_MESSAGES - org.newsclub.net.unix.AFUNIXSocketCapability
-
Socket supports sending and receiving ancillary messages.
- CAPABILITY_FILE_DESCRIPTORS - org.newsclub.net.unix.AFUNIXSocketCapability
-
Socket supports passing file descriptors via ancillary messages.
- CAPABILITY_PEER_CREDENTIALS - org.newsclub.net.unix.AFUNIXSocketCapability
-
Socket supports retrieving peer credentials.
- clearReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Clears the queue of incoming
FileDescriptors that were sent as ancillary messages. - close() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- close() - Method in class org.newsclub.net.unix.AFUNIXSocket
- close() - Method in class org.newsclub.net.unix.Closeables
- close(IOException) - Method in class org.newsclub.net.unix.Closeables
-
Closes all registered closeables.
- Closeables - Class in org.newsclub.net.unix
-
A set of
Closeablesthat can be closed at once. - Closeables() - Constructor for class org.newsclub.net.unix.Closeables
- Closeables(Closeable...) - Constructor for class org.newsclub.net.unix.Closeables
- connect(SocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSocket
- connect(SocketAddress, int) - Method in class org.newsclub.net.unix.AFUNIXSocket
- connectTo(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Creates a new
AFUNIXSocketand connects it to the givenAFUNIXSocketAddress. - createSocket() - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
- createSocket(String, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
- createSocket(String, int, InetAddress, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
- createSocket(InetAddress, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
- createSocket(InetAddress, int, InetAddress, int) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
E
- ensureAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Ensures a minimum ancillary receive buffer size.
- equals(Object) - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
F
- FactoryArg(File) - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
- FactoryArg(String) - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
- forceBindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new, unbound AF_UNIX
ServerSocketthat will always bind to the given address, regardless of any socket address used in a call tobind.
G
- getAncillaryReceiveBufferSize() - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Returns the size of the receive buffer for ancillary messages (in bytes).
- getGid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the primary "gid" (group ID), or
-1if it could not be retrieved. - getGids() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns all "gid" values (group IDs), or
nullif they could not be retrieved. - getLoadedLibrary() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Returns an identifier of the loaded native library, or
nullif the library hasn't been loaded yet. - getLocalPort() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- getPath() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns the path to the UNIX domain socket, as a human-readable string.
- getPathAsBytes() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns the path to the UNIX domain socket, as bytes.
- getPeerCredentials() - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Retrieves the "peer credentials" for this connection.
- getPid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the "pid" (process ID), or
-1if it could not be retrieved. - getReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Retrieves an array of incoming
FileDescriptors that were sent as ancillary messages, along with a call toInputStream.read(), etc. - getUid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the "uid" (user ID), or
-1if it could not be retrieved. - getUUID() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the process' unique identifier, or
nullif no such identifier could be retrieved. - getVersion() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Returns the version of the junixsocket library, as a string, for debugging purposes.
H
- hashCode() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
I
- inAbstractNamespace(String) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Convenience method to create an
AFUNIXSocketAddressin the abstract namespace. - inAbstractNamespace(String, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Convenience method to create an
AFUNIXSocketAddressin the abstract namespace. - isBound() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- isClosed() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- isClosed() - Method in class org.newsclub.net.unix.AFUNIXSocket
- isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
-
Checks whether the given hostname is supported by this socket factory.
- isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
- isInetAddressSupported(InetAddress) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
-
Checks whether the given
InetAddressis supported by this socket factory. - isSupported() - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Checks whether everything is setup to support AF_UNIX sockets.
- isSupported() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Returns
trueiffAFUNIXSockets are supported by the current Java VM.
M
- main(String[]) - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Very basic self-test function.
N
- newInstance() - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new, unbound AF_UNIX
ServerSocket. - newInstance() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Creates a new, unbound
AFUNIXSocket. - newSocketInstance() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- newStrictInstance() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Creates a new, unbound, "strict"
AFUNIXSocket.
O
- org.newsclub.net.unix - module org.newsclub.net.unix
- org.newsclub.net.unix - package org.newsclub.net.unix
-
The actual AF_UNIX Socket implementation.
R
- remotePeerCredentials() - Static method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the
AFUNIXSocketCredentialsfor the currently active remote session, ornullif it was not possible to retrieve these credentials. - remove(Closeable) - Method in class org.newsclub.net.unix.Closeables
-
Removes the given closeable.
- removeCloseable(Closeable) - Method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Unregisters a previously registered
Closeable. - removeCloseable(Closeable) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Unregisters a previously registered
Closeable.
S
- SAME_PROCESS - Static variable in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Special instance, indicating that there is no remote peer, but the referenced object is from the same process.
- setAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Sets the size of the receive buffer for ancillary messages (in bytes).
- setOutboundFileDescriptors(FileDescriptor...) - Method in class org.newsclub.net.unix.AFUNIXSocket
-
Sets a list of
FileDescriptors that should be sent as an ancillary message along with the next write. - supports(AFUNIXSocketCapability) - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Checks if the current environment (system platform, native library, etc.) supports a given junixsocket capability.
- SystemProperty() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.SystemProperty
T
- toString() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
- toString() - Method in class org.newsclub.net.unix.AFUNIXSocket
- toString() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
- toString() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
U
- URIScheme() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
V
- valueOf(String) - Static method in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages