Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accept() - Method in class org.newsclub.net.unix.AFDatagramSocket
Accepts a connection to this socket.
accept() - Method in class org.newsclub.net.unix.AFServerSocket
 
accept() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
accept() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
 
accept() - Method in class org.newsclub.net.unix.AFUNIXServerSocketChannel
 
accept(SocketImpl) - Method in class org.newsclub.net.unix.AFSocketImpl
 
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.AFServerSocket
Registers a Closeable that should be closed when this socket is closed.
addCloseable(Closeable) - Method in class org.newsclub.net.unix.AFSocket
Registers a Closeable that should be closed when this socket is closed.
addressCharset() - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns the Charset used to encode/decode AFUNIXSocketAddresses.
addressConstructor() - Method in class org.newsclub.net.unix.AFSocketAddressConfig
Returns the implementation's address constructor.
addressFamily() - Method in class org.newsclub.net.unix.AFDatagramSocket
Returns the address family supported by this implementation.
addressFamily() - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns the corresponding AFAddressFamily.
addressFamily() - Method in class org.newsclub.net.unix.AFSelectorProvider
Returns the address family supported by this implementation.
addressFamily() - Method in class org.newsclub.net.unix.AFServerSocket
Returns the address family supported by this implementation.
addressFamily() - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns the corresponding AFAddressFamily.
addressFamily() - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the corresponding AFAddressFamily.
addressFamily() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
addressFamily() - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns the corresponding AFAddressFamily.
addressFamily() - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns the corresponding AFAddressFamily.
addressFromHost(String, int) - Method in interface org.newsclub.net.unix.AFSocketAddressFromHostname
Translates a "host" string (and port) to an AFSocketAddress.
addressFromHost(String, int) - Method in class org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory
 
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
 
AddressUnavailableSocketException - Exception Class in org.newsclub.net.unix
A SocketException that may be thrown upon some "address unavailable" condition from native code (e.g., EADDRNOTAVAIL is returned).
AddressUnavailableSocketException() - Constructor for exception class org.newsclub.net.unix.AddressUnavailableSocketException
AddressUnavailableSocketException(String) - Constructor for exception class org.newsclub.net.unix.AddressUnavailableSocketException
AF_SYS_CONTROL - Static variable in class org.newsclub.net.unix.AFSYSTEMSocketAddress.SysAddr
The sysaddr AF_SYS_CONTROL, also known as AF_SYS_KERN_CONTROL.
AFAddressFamily<A> - Class in org.newsclub.net.unix
Describes an address family supported by junixsocket.
AFAddressFamilyConfig<A> - Class in org.newsclub.net.unix
The implementation-specifics for a given address family implementation.
AFAddressFamilyConfig() - Constructor for class org.newsclub.net.unix.AFAddressFamilyConfig
Constructor.
AFDatagramChannel<A> - Class in org.newsclub.net.unix
A DatagramChannel implementation that works with junixsocket.
AFDatagramChannel(AFSelectorProvider<A>, AFDatagramSocket<A>) - Constructor for class org.newsclub.net.unix.AFDatagramChannel
Creates a new AFDatagramChannel instance.
AFDatagramSocket<A> - Class in org.newsclub.net.unix
A DatagramSocket implementation that works with junixsocket.
AFDatagramSocket(AFDatagramSocketImpl<A>) - Constructor for class org.newsclub.net.unix.AFDatagramSocket
Creates a new AFDatagramSocket instance.
AFDatagramSocket.Constructor<A> - Interface in org.newsclub.net.unix
A reference to the constructor of an AFDatagramSocket subclass.
AFDatagramSocketImpl<A> - Class in org.newsclub.net.unix
A DatagramSocketImpl implemented by junixsocket.
AFDatagramSocketImpl(AFAddressFamily<A>, FileDescriptor, AFSocketType) - Constructor for class org.newsclub.net.unix.AFDatagramSocketImpl
Constructs a new AFDatagramSocketImpl using the given FileDescriptor (or null to create a new one).
AFGenericSocketAddress - Class in org.newsclub.net.unix
An AFSocketAddress for unknown socket types.
AFInputStream - Class in org.newsclub.net.unix
An InputStream for AFSocket, etc.
AFIOSupplier<T> - Interface in org.newsclub.net.unix
A supplier that can throw an IOException.
AFOutputStream - Class in org.newsclub.net.unix
An OutputStream for AFSocket, etc.
AFPipe - Class in org.newsclub.net.unix
A Pipe, natively implemented.
AFPipe.SinkChannel - Class in org.newsclub.net.unix
A channel representing the writable end of a Pipe, with access to the FileDescriptor.
AFPipe.SourceChannel - Class in org.newsclub.net.unix
A channel representing the readable end of a Pipe, with access to the FileDescriptor.
AFProtocolFamily - Interface in org.newsclub.net.unix
A junixsocket-based protocol family.
AFSelectorProvider<A> - Class in org.newsclub.net.unix
Service-provider class for junixsocket selectors and selectable channels.
AFSelectorProvider() - Constructor for class org.newsclub.net.unix.AFSelectorProvider
Constructs a new AFSelectorProvider.
AFServerSocket<A> - Class in org.newsclub.net.unix
The server part of a junixsocket socket.
AFServerSocket() - Constructor for class org.newsclub.net.unix.AFServerSocket
Constructs a new, unconnected instance.
AFServerSocket(FileDescriptor) - Constructor for class org.newsclub.net.unix.AFServerSocket
Constructs a new instance, optionally associated with the given file descriptor.
AFServerSocket.Constructor<A> - Interface in org.newsclub.net.unix
The constructor of the concrete subclass.
AFServerSocketChannel<A> - Class in org.newsclub.net.unix
A selectable channel for stream-oriented listening sockets.
AFServerSocketChannel(AFServerSocket<A>, AFSelectorProvider<A>) - Constructor for class org.newsclub.net.unix.AFServerSocketChannel
Creates a new AFServerSocketChannel instance.
AFServerSocketConnector<A,T> - Interface in org.newsclub.net.unix
Some connector that is able to create AFServerSockets bound to a given AFSocketAddress.
AFSocket<A> - Class in org.newsclub.net.unix
junixsocket's base implementation of a Socket.
AFSocket(AFSocketImpl<A>, AFSocketAddressFromHostname<A>) - Constructor for class org.newsclub.net.unix.AFSocket
Creates a new AFSocket instance.
AFSocket.Constructor<A> - Interface in org.newsclub.net.unix
The reference to the constructor of an AFSocket subclass.
AFSocketAddress - Class in org.newsclub.net.unix
Some SocketAddress that is supported by junixsocket, such as AFUNIXSocketAddress.
AFSocketAddress(int, byte[], ObjectPool.Lease<ByteBuffer>, AFAddressFamily<?>) - Constructor for class org.newsclub.net.unix.AFSocketAddress
Creates a new socket address.
AFSocketAddress.AFSocketAddressConstructor<T> - Interface in org.newsclub.net.unix
A reference to the constructor of an AFSocketAddress subclass.
AFSocketAddressConfig<A> - Class in org.newsclub.net.unix
The implementation-specifics for a given AFSocketAddress subclass implementation.
AFSocketAddressConfig() - Constructor for class org.newsclub.net.unix.AFSocketAddressConfig
Constructor.
AFSocketAddressFromHostname<A> - Interface in org.newsclub.net.unix
Helps converting an internet "hostname" to an AFSocketAddress.
AFSocketCapability - Enum Class in org.newsclub.net.unix
Describes junixsocket capabilities the current environment (system platform, native library, etc.) may or may not support.
AFSocketChannel<A> - Class in org.newsclub.net.unix
A selectable channel for stream-oriented connecting sockets.
AFSocketChannel(AFSocket<A>, AFSelectorProvider<A>) - Constructor for class org.newsclub.net.unix.AFSocketChannel
Creates a new socket channel for the given socket, using the given SelectorProvider.
AFSocketChannel.AFSocketSupplier<A> - Interface in org.newsclub.net.unix
A reference to a method that provides an AFSocket instance.
AFSocketConnector<A,T> - Interface in org.newsclub.net.unix
Some connector that is able to connect to a given AFSocketAddress.
AFSocketExtensions - Interface in org.newsclub.net.unix
Defines certain methods that all junixsocket socket implementations share and extend beyond the standard socket API.
AFSocketFactory<A> - Class in org.newsclub.net.unix
The base for a SocketFactory that connects to UNIX sockets.
AFSocketFactory(Class<? extends AFSocketAddress>) - Constructor for class org.newsclub.net.unix.AFSocketFactory
Creates a new socket factory instance.
AFSocketFactory.FixedAddressSocketFactory - Class in org.newsclub.net.unix
A socket factory that always connects to a fixed socket address, no matter what.
AFSocketImpl<A> - Class in org.newsclub.net.unix
junixsocket-based SocketImpl.
AFSocketImpl(AFAddressFamily<A>, FileDescriptor) - Constructor for class org.newsclub.net.unix.AFSocketImpl
Creates a new AFSocketImpl instance.
AFSocketImplExtensions<A> - Interface in org.newsclub.net.unix
Placeholder for protocol-specific code that resides in the native library.
AFSocketOption<T> - Class in org.newsclub.net.unix
A special socket option supported by some junixsocket-based implementation.
AFSocketOption(String, Class<T>, int, int) - Constructor for class org.newsclub.net.unix.AFSocketOption
Creates a new socket option.
AFSocketPair<T> - Class in org.newsclub.net.unix
A pair of sockets.
AFSocketPair(T, T) - Constructor for class org.newsclub.net.unix.AFSocketPair
Creates a socket pair.
AFSocketPair(T, T, Closeable) - Constructor for class org.newsclub.net.unix.AFSocketPair
Creates a socket pair.
AFSocketProtocol - Enum Class in org.newsclub.net.unix
Describes the "protocol" part of a socket.
AFSocketType - Enum Class in org.newsclub.net.unix
Describes the "type" of a socket.
AFSomeSocket - Interface in org.newsclub.net.unix
Marker interface that combines junixsocket-based SocketChannels, Sockets, DatagramChannels and DatagramSockets.
AFSomeSocketChannel - Interface in org.newsclub.net.unix
Marker interface that combines junixsocket-based SocketChannels, DatagramChannels or ServerSocketChannels.
AFSomeSocketThing - Interface in org.newsclub.net.unix
Marker interface that combines junixsocket-based SocketChannels, Sockets, DatagramChannels and DatagramSockets, as well as ServerSockets and ServerSocketChannels.
AFSYSTEMSocketAddress - Class in org.newsclub.net.unix
An AFSocketAddress for AF_SYSTEM sockets.
AFSYSTEMSocketAddress.SysAddr - Class in org.newsclub.net.unix
The AF_SYSTEM system address.
AFSYSTEMSocketImplExtensions - Class in org.newsclub.net.unix
AF_SYSTEM-specific code that resides in the native library.
AFTIPCSocketAddress - Class in org.newsclub.net.unix
An AFSocketAddress for TIPC sockets.
AFTIPCSocketAddress.AddressType - Class in org.newsclub.net.unix
The TIPC address type.
AFTIPCSocketAddress.Scope - Class in org.newsclub.net.unix
The TIPC visibility scope.
AFTIPCSocketImplExtensions - Class in org.newsclub.net.unix
TIPC-specific code that resides in the native library.
AFUNIXDatagramChannel - Class in org.newsclub.net.unix
A DatagramChannel implementation that works with AF_UNIX Unix domain sockets.
AFUNIXDatagramSocket - Class in org.newsclub.net.unix
A DatagramSocket implementation that works with AF_UNIX Unix domain sockets.
AFUNIXProtocolFamily - Enum Class in org.newsclub.net.unix
Describes the protocol family supported by AFUNIXSocketAddress etc.
AFUNIXSelectorProvider - Class in org.newsclub.net.unix
Service-provider class for junixsocket selectors and selectable channels.
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.
AFUNIXServerSocketChannel - Class in org.newsclub.net.unix
A selectable channel for stream-oriented listening sockets.
AFUNIXSocket - Class in org.newsclub.net.unix
Implementation of an AF_UNIX domain socket.
AFUNIXSocketAddress - Class in org.newsclub.net.unix
Describes an InetSocketAddress that actually uses AF_UNIX sockets instead of AF_INET.
AFUNIXSocketAddress(File) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
Deprecated.
AFUNIXSocketAddress(File, int) - Constructor for class org.newsclub.net.unix.AFUNIXSocketAddress
Deprecated.
AFUNIXSocketCapability - Enum Class in org.newsclub.net.unix
Deprecated.
AFUNIXSocketChannel - Class in org.newsclub.net.unix
A selectable channel for stream-oriented connecting sockets.
AFUNIXSocketCredentials - Class in org.newsclub.net.unix
AF_UNIX socket credentials.
AFUNIXSocketExtensions - Interface in org.newsclub.net.unix
Defines certain methods that all junixsocket AF_UNIX socket implementations share and extend beyond the standard socket API.
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 ("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.
AFUNIXSocketPair<T> - Class in org.newsclub.net.unix
A pair of sockets.
AFVSOCKSocketAddress - Class in org.newsclub.net.unix
An AFSocketAddress for VSOCK sockets.
AFVSOCKSocketImplExtensions - Class in org.newsclub.net.unix
VSOCK-specific code that resides in the native library.
apply(SocketAddress) - Method in interface org.newsclub.net.unix.SocketAddressFilter
Applies the filter on the given address.
as(Class<K>) - Method in class org.newsclub.net.unix.FileDescriptorCast
Casts this instance to the desired type.
available() - Method in class org.newsclub.net.unix.AFSocketImpl
 
availableTypes() - Method in class org.newsclub.net.unix.FileDescriptorCast
Returns a collection of available types this instance can be cast to (using FileDescriptorCast.as(Class)).

B

bind(int, InetAddress) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
bind(A) - Method in interface org.newsclub.net.unix.AFServerSocketConnector
Creates an AFServerSocket bound to the given address.
bind(InetAddress, int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
bind(SocketAddress) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
bind(SocketAddress) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
bind(SocketAddress) - Method in class org.newsclub.net.unix.AFServerSocket
 
bind(SocketAddress) - Method in class org.newsclub.net.unix.AFSocket
Not supported, since it's not necessary for client sockets.
bind(SocketAddress) - Method in class org.newsclub.net.unix.AFSocketChannel
 
bind(SocketAddress, int) - Method in class org.newsclub.net.unix.AFServerSocket
 
bind(SocketAddress, int) - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
bindHook(SocketAddressFilter) - Method in class org.newsclub.net.unix.AFServerSocket
Sets the hook for any subsequent call to AFServerSocket.bind(SocketAddress) and AFServerSocket.bind(SocketAddress, int) to be the given function.
bindOn(File, boolean) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new AF_UNIX ServerSocket that is bound to the given path.
bindOn(Path, boolean) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new AF_UNIX ServerSocket that is bound to the given path.
bindOn(AFServerSocket.Constructor<A>, A, boolean) - Static method in class org.newsclub.net.unix.AFServerSocket
Returns a new ServerSocket that is bound to the given AFSocketAddress.
bindOn(AFServerSocket.Constructor<A>, AFSocketAddress) - Static method in class org.newsclub.net.unix.AFServerSocket
Returns a new ServerSocket that is bound to the given AFSocketAddress.
bindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new AF_UNIX ServerSocket that is bound to the given AFUNIXSocketAddress.
bindOn(AFUNIXSocketAddress, boolean) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new AF_UNIX ServerSocket that is bound to the given AFSocketAddress.
BrokenPipeSocketException - Exception Class in org.newsclub.net.unix
A SocketException indicating that a socket connection was broken ("broken pipe").
BrokenPipeSocketException() - Constructor for exception class org.newsclub.net.unix.BrokenPipeSocketException
Constructs a new BrokenPipeSocketException.
BrokenPipeSocketException(String) - Constructor for exception class org.newsclub.net.unix.BrokenPipeSocketException
Constructs a new BrokenPipeSocketException.

C

canMap(SocketAddress) - Static method in class org.newsclub.net.unix.AFSocketAddress
Checks if the given SocketAddress can be mapped to an AFSocketAddress.
canMap(SocketAddress, Class<? extends AFSocketAddress>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Checks if the given SocketAddress can be mapped to a specific AFSocketAddress subclass.
CAPABILITY_ABSTRACT_NAMESPACE - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Socket addressing supports the abstract namespace (Linux).
CAPABILITY_ABSTRACT_NAMESPACE - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Socket addressing supports the abstract namespace (Linux).
CAPABILITY_ANCILLARY_MESSAGES - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Socket supports sending and receiving ancillary messages.
CAPABILITY_ANCILLARY_MESSAGES - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Socket supports sending and receiving ancillary messages.
CAPABILITY_DARWIN - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for certain Darwin (macOS Kernel)-specific features, such as the AF_SYSTEM domain.
CAPABILITY_DATAGRAMS - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Support for AF_UNIX datagrams (not on Windows yet).
CAPABILITY_FD_AS_REDIRECT - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
A file descriptor can be converted to ProcessBuilder.Redirect.
CAPABILITY_FILE_DESCRIPTORS - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Socket supports passing file descriptors via ancillary messages.
CAPABILITY_FILE_DESCRIPTORS - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Socket supports passing file descriptors via ancillary messages.
CAPABILITY_LARGE_PORTS - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for port numbers larger than 65535 (0xffff).
CAPABILITY_NATIVE_SOCKETPAIR - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
A pair of interconnected sockets can be created natively as AF_UNIX sockets.
CAPABILITY_NATIVE_SOCKETPAIR - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
A pair of interconnected sockets can be created natively.
CAPABILITY_PEER_CREDENTIALS - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Socket supports retrieving peer credentials.
CAPABILITY_PEER_CREDENTIALS - Enum constant in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Socket supports retrieving peer credentials.
CAPABILITY_TIPC - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for AF_TIPC.
CAPABILITY_UNIX_DATAGRAMS - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for AF_UNIX datagrams.
CAPABILITY_UNIX_DOMAIN - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for AF_UNIX.
CAPABILITY_UNSAFE - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for "unsafe" operations.
CAPABILITY_VSOCK - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for AF_VSOCK.
CAPABILITY_VSOCK_DGRAM - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for AF_VSOCK datagrams (not all platforms/kernel versions or configurations support this).
CAPABILITY_ZERO_LENGTH_SEND - Enum constant in enum class org.newsclub.net.unix.AFSocketCapability
Support for zero-length send(2).
checkConnectionClosed() - Method in class org.newsclub.net.unix.AFSocket
Probes the status of the socket connection.
checkNotInterruptedOrThrow() - Static method in class org.newsclub.net.unix.ThreadUtil
Checks if the current Thread has been interrupted, without clearing the flag; if interrupted, an InterruptedIOException is thrown, otherwise true is returned.
clearReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramChannel
 
clearReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
clearReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
clearReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocketChannel
 
clearReceivedFileDescriptors() - Method in interface org.newsclub.net.unix.AFUNIXSocketExtensions
Clears the queue of incoming FileDescriptors that were sent as ancillary messages.
close() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
close() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
close() - Method in class org.newsclub.net.unix.AFPipe
 
close() - Method in class org.newsclub.net.unix.AFServerSocket
 
close() - Method in class org.newsclub.net.unix.AFSocket
 
close() - Method in class org.newsclub.net.unix.AFSocketImpl
 
close() - Method in class org.newsclub.net.unix.CloseablePair
 
close() - Method in class org.newsclub.net.unix.Closeables
 
close(IOException) - Method in class org.newsclub.net.unix.Closeables
Closes all registered closeables.
CloseablePair<T> - Class in org.newsclub.net.unix
A pair of two closeable items.
CloseablePair(T, T) - Constructor for class org.newsclub.net.unix.CloseablePair
Creates a pair of two items.
CloseablePair(T, T, Closeable) - Constructor for class org.newsclub.net.unix.CloseablePair
Creates a pair of two items.
Closeables - Class in org.newsclub.net.unix
A set of Closeables that can be closed at once.
Closeables() - Constructor for class org.newsclub.net.unix.Closeables
Creates a new Closeables instance.
Closeables(Closeable...) - Constructor for class org.newsclub.net.unix.Closeables
Creates a new Closeables instance, populating it with the given Closeable objects.
combineWith(T) - Method in class org.newsclub.net.unix.NamedIntegerBitmask
Combines two flags / flag sets.
combineWith(T[], T, NamedIntegerBitmask.Constructor<T>, T) - Method in class org.newsclub.net.unix.NamedIntegerBitmask
Combines two flags / flag sets (use this to implement NamedIntegerBitmask.combineWith(NamedIntegerBitmask)).
configureBlocking(boolean) - Method in interface org.newsclub.net.unix.AFSomeSocketChannel
Adjusts this channel's blocking mode.
connect(A) - Method in interface org.newsclub.net.unix.AFSocketConnector
Connect to the socket at the given address.
connect(String, int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
connect(InetAddress, int) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
connect(InetAddress, int) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
connect(InetAddress, int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
connect(SocketAddress) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
connect(SocketAddress) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
connect(SocketAddress) - Method in class org.newsclub.net.unix.AFSocket
 
connect(SocketAddress) - Method in class org.newsclub.net.unix.AFSocketChannel
 
connect(SocketAddress, int) - Method in class org.newsclub.net.unix.AFSocket
 
connect(SocketAddress, int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
connectHook(SocketAddressFilter) - Method in class org.newsclub.net.unix.AFSocket
Sets the hook for any subsequent call to AFSocket.connect(SocketAddress) or AFSocket.connect(SocketAddress, int) to be the given function.
ConnectionResetSocketException - Exception Class in org.newsclub.net.unix
A SocketException indicating that a socket connection was reset.
ConnectionResetSocketException() - Constructor for exception class org.newsclub.net.unix.ConnectionResetSocketException
ConnectionResetSocketException(String) - Constructor for exception class org.newsclub.net.unix.ConnectionResetSocketException
connectTo(A) - Static method in class org.newsclub.net.unix.AFSocket
Creates a new AFSocket and connects it to the given AFSocketAddress using the default implementation suited for that address type.
connectTo(A) - Method in class org.newsclub.net.unix.AFSocketFactory
Creates a new AFSocket, connected to the given address.
connectTo(AFSocket.Constructor<A>, A) - Static method in class org.newsclub.net.unix.AFSocket
Creates a new AFSocket and connects it to the given AFSocketAddress.
connectTo(AFSocketAddress) - Method in class org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory
 
connectTo(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocket
Creates a new AFSocket and connects it to the given AFUNIXSocketAddress.
connectTo(AFUNIXSocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
 
covers(AFSocketAddress) - Method in class org.newsclub.net.unix.AFSocketAddress
Checks if the given address could cover another address.
covers(AFSocketAddress) - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Checks if the given address could cover another address.
create() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
create(boolean) - Method in class org.newsclub.net.unix.AFSocketImpl
 
createSocket() - Method in class org.newsclub.net.unix.AFSocketFactory
 
createSocket() - Method in class org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory
 
createSocket() - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
 
createSocket(String, int) - Method in class org.newsclub.net.unix.AFSocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class org.newsclub.net.unix.AFSocketFactory
 
createSocket(InetAddress, int) - Method in class org.newsclub.net.unix.AFSocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class org.newsclub.net.unix.AFSocketFactory
 

D

datagramChannelClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's DatagramChannel class.
datagramSocketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's DatagramSocket class.
datagramSocketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's DatagramSocket constructor.
DEFAULT - Enum constant in enum class org.newsclub.net.unix.AFSocketProtocol
The "default" protocol.
disconnect() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
disconnect() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
domainId() - Method in class org.newsclub.net.unix.AFSelectorProvider
Returns the domain ID for the supported protocol, as specified by NativeUnixSocket.
duplicating(FileDescriptor) - Static method in class org.newsclub.net.unix.FileDescriptorCast
Creates a FileDescriptorCast using a duplicate of the given file descriptor.

E

ensureAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
ensureAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
ensureAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFSocket
 
ensureAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFSocketChannel
 
ensureAncillaryReceiveBufferSize(int) - Method in interface org.newsclub.net.unix.AFSocketExtensions
Ensures a minimum ancillary receive buffer size.
ensureSupported() - Static method in class org.newsclub.net.unix.AFSocket
Checks if AFSockets are supported by the current Java VM.
ensureUnsafeSupported() - Static method in class org.newsclub.net.unix.AFSocket
Checks if the current environment (system platform, native library, etc.) supports "unsafe" operations (as controlled via the AFSocketCapability.CAPABILITY_UNSAFE capability).
equals(Object) - Method in class org.newsclub.net.unix.NamedInteger
 
equals(Object) - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
 
equals(Object) - Method in class org.newsclub.net.unix.HostAndPort
 

F

FactoryArg(File) - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
Constructs a new AFUNIXSocketFactory.FactoryArg factory using the given socket path.
FactoryArg(String) - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
Constructs a new AFUNIXSocketFactory.FactoryArg factory using the given socket path.
FileDescriptorAccess - Interface in org.newsclub.net.unix
Something that has a FileDescriptor.
FileDescriptorCast - Class in org.newsclub.net.unix
Provides object-oriented access to file descriptors via InputStream, Socket, etc., depending on the file descriptor type.
finishConnect() - Method in class org.newsclub.net.unix.AFSocketChannel
 
FixedAddressSocketFactory(SocketAddress) - Constructor for class org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory
forceBindAddress(SocketAddress) - Method in class org.newsclub.net.unix.AFServerSocket
Forces the address to be used for any subsequent call to AFServerSocket.bind(SocketAddress) to be the given one, regardless of what'll be passed to AFServerSocket.bind(SocketAddress, int), but doesn't bind yet.
forceBindOn(AFServerSocket.Constructor<A>, A) - Static method in class org.newsclub.net.unix.AFServerSocket
Returns a new, unbound ServerSocket that will always bind to the given address, regardless of any socket address used in a call to bind.
forceBindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new, unbound AF_UNIX ServerSocket that will always bind to the given address, regardless of any socket address used in a call to bind.
forceConnectAddress(SocketAddress) - Method in class org.newsclub.net.unix.AFSocket
Forces the address to be used for any subsequent call to AFSocket.connect(SocketAddress) to be the given one, regardless of what'll be passed there.
formatTIPCInt(int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress.AddressType
Formats an integer as an unsigned, zero-padded 32-bit hexadecimal number.

G

get() - Method in interface org.newsclub.net.unix.AFIOSupplier
Gets a result.
getAddressFamily() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
Returns the address family supported by this implementation.
getAddressFamily() - Method in class org.newsclub.net.unix.AFSocketAddress
Returns the corresponding AFAddressFamily.
getAFSocket() - Method in class org.newsclub.net.unix.AFDatagramChannel
Returns the corresponding Socket.
getAFSocket() - Method in class org.newsclub.net.unix.AFSocketChannel
Returns the corresponding AFSocket.
getAncillaryReceiveBufferSize() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getAncillaryReceiveBufferSize() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getAncillaryReceiveBufferSize() - Method in class org.newsclub.net.unix.AFSocket
 
getAncillaryReceiveBufferSize() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getAncillaryReceiveBufferSize() - Method in interface org.newsclub.net.unix.AFSocketExtensions
Returns the size of the receive buffer for ancillary messages (in bytes).
getBytes() - Method in class org.newsclub.net.unix.AFSocketAddress
Returns the (non-native) byte-level representation of this address.
getChannel() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getChannel() - Method in class org.newsclub.net.unix.AFServerSocket
 
getChannel() - Method in class org.newsclub.net.unix.AFSocket
 
getChannel() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
getChannel() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
 
getChannel() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
getFile() - Method in class org.newsclub.net.unix.AFGenericSocketAddress
 
getFile() - Method in class org.newsclub.net.unix.AFSocketAddress
Returns the File corresponding with this address, if possible.
getFile() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
 
getFile() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
 
getFile() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
getFile() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFServerSocket
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFSocket
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getFileDescriptor() - Method in class org.newsclub.net.unix.AFSocketImpl
 
getFileDescriptor() - Method in interface org.newsclub.net.unix.FileDescriptorAccess
Returns the corresponding FileDescriptor.
getFileDescriptor() - Method in class org.newsclub.net.unix.FileDescriptorCast
 
getFirst() - Method in class org.newsclub.net.unix.CloseablePair
Returns the pair's first item.
getGid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns the primary "gid" (group ID), or -1 if it could not be retrieved.
getGids() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns all "gid" values (group IDs), or null if they could not be retrieved.
getHostname() - Method in class org.newsclub.net.unix.HostAndPort
Returns the hostname.
getId() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns the "id" part of the address.
getImplExtensions() - Method in class org.newsclub.net.unix.AFDatagramSocket
Returns the internal helper instance for address-specific extensions.
getImplExtensions() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
Returns the internal helper instance for address-specific extensions.
getImplExtensions() - Method in class org.newsclub.net.unix.AFSocket
Returns the internal helper instance for address-specific extensions.
getImplExtensions() - Method in class org.newsclub.net.unix.AFSocketImpl
Returns the internal helper instance for address-specific extensions.
getInetAddress() - Method in class org.newsclub.net.unix.AFServerSocket
 
getInetAddress() - Method in class org.newsclub.net.unix.AFSocketAddress
Wraps this address as an InetAddress.
getInetAddress() - Method in class org.newsclub.net.unix.AFSocketImpl
 
getInetAddress(FileDescriptor, boolean, AFAddressFamily<?>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Wraps the socket name/peer name of a file descriptor as an InetAddress.
getInetAddress(AFAddressFamily<?>) - Method in class org.newsclub.net.unix.AFSocketAddress
Wraps an address as an InetAddress.
getInputStream() - Method in class org.newsclub.net.unix.AFSocket
 
getInputStream() - Method in class org.newsclub.net.unix.AFSocketImpl
 
getInstance() - Static method in class org.newsclub.net.unix.AFUNIXSelectorProvider
Returns the singleton instance.
getKernelControlId(FileDescriptor, String) - Method in class org.newsclub.net.unix.AFSYSTEMSocketImplExtensions
Retrieves the kernel control ID given a kernel control name.
getLoadedLibrary() - Static method in class org.newsclub.net.unix.AFSocket
Returns an identifier of the loaded native library, or null if the library hasn't been loaded yet.
getLocalAddress() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getLocalAddress() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
getLocalAddress() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getLocalCID() - Method in class org.newsclub.net.unix.AFVSOCKSocketImplExtensions
Returns the local CID.
getLocalPort() - Method in class org.newsclub.net.unix.AFServerSocket
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFServerSocket
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFSocket
 
getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getLocalSocketAddress() - Method in interface org.newsclub.net.unix.AFSomeSocketThing
Returns the socket's local socket address, or null if unavailable or if there was a problem retrieving it.
getOption(int) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
getOption(int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFServerSocket
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFSocketChannel
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFSocketImpl
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getOption(SocketOption<T>) - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
getOption(AFSocketOption<T>) - Method in class org.newsclub.net.unix.AFDatagramSocket
Returns the value of a junixsocket socket option.
getOptionLenient(int) - Method in class org.newsclub.net.unix.AFSocketImpl
Like AFSocketImpl.getOption(int), but ignores exceptions for certain option IDs.
getOutputStream() - Method in class org.newsclub.net.unix.AFSocket
 
getOutputStream() - Method in class org.newsclub.net.unix.AFSocketImpl
 
getPath() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns the path to the UNIX domain socket, as a human-readable string using the default encoding.
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.AFUNIXDatagramChannel
 
getPeerCredentials() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
getPeerCredentials() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
getPeerCredentials() - Method in class org.newsclub.net.unix.AFUNIXSocketChannel
 
getPeerCredentials() - Method in interface org.newsclub.net.unix.AFUNIXSocketExtensions
Retrieves the "peer credentials" for this connection.
getPid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns the "pid" (process ID), or -1 if it could not be retrieved.
getPort() - Method in class org.newsclub.net.unix.HostAndPort
Returns the port, or -1 for "no port specified".
getReceiveBufferSize() - Method in class org.newsclub.net.unix.AFServerSocket
 
getReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramChannel
 
getReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
getReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
getReceivedFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocketChannel
 
getReceivedFileDescriptors() - Method in interface org.newsclub.net.unix.AFUNIXSocketExtensions
Retrieves an array of incoming FileDescriptors that were sent as ancillary messages, along with a call to InputStream.read(), etc.
getRemoteAddress() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getRemoteAddress() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getRemoteSocketAddress() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
getRemoteSocketAddress() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
getRemoteSocketAddress() - Method in class org.newsclub.net.unix.AFSocket
 
getRemoteSocketAddress() - Method in class org.newsclub.net.unix.AFSocketChannel
 
getRemoteSocketAddress() - Method in interface org.newsclub.net.unix.AFSomeSocket
Returns the socket's remote socket address, or null if unavailable/not connected, or if there was a problem retrieving it.
getReuseAddress() - Method in class org.newsclub.net.unix.AFServerSocket
 
getScope() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the scope of this address.
getSecond() - Method in class org.newsclub.net.unix.CloseablePair
Returns the pair's second item.
getSelectorProvider() - Method in class org.newsclub.net.unix.AFAddressFamily
Returns the SelectorProvider associated with this address family, or null if no such instance is registered.
getSocket1() - Method in class org.newsclub.net.unix.AFSocketPair
Returns the first socket of the pair.
getSocket2() - Method in class org.newsclub.net.unix.AFSocketPair
Returns the second socket of the pair.
getSocketAddress(FileDescriptor, boolean, int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Gets the socket name/peer name of a file descriptor as an AFSocketAddress.
getSoTimeout() - Method in class org.newsclub.net.unix.AFServerSocket
 
getSysAddr() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns the "SysAddr" part of the address.
getTimeToLive() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
getTIPCDestName() - Method in class org.newsclub.net.unix.AFTIPCSocketImplExtensions
Returns the TIPC "DestName" data from the ancillary receive buffer.
getTIPCDomain() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC domain part of this address.
getTIPCErrInfo() - Method in class org.newsclub.net.unix.AFTIPCSocketImplExtensions
Returns the TIPC "ErrInfo" data from the ancillary receive buffer.
getTIPCInstance() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC instance part of this address.
getTIPCLinkName(int, int) - Method in class org.newsclub.net.unix.AFTIPCSocketImplExtensions
Retrieves the TIPC link name given a node hash and bearer Id.
getTIPCLower() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC lower instance of this address.
getTIPCNodeHash() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC node hash of this address.
getTIPCNodeId(int) - Method in class org.newsclub.net.unix.AFTIPCSocketImplExtensions
Retrieves the 16-byte TIPC node identity given a node hash.
getTIPCRef() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC ref of this address.
getTIPCType() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC type part of this address.
getTIPCUpper() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns the TIPC upper instance of this address.
getTTL() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
Deprecated.
getUid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns the "uid" (user ID), or -1 if it could not be retrieved.
getUnit() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns the "unit" part of the address.
getUUID() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns the process' unique identifier, or null if no such identifier could be retrieved.
getVersion() - Static method in class org.newsclub.net.unix.AFSocket
Returns the version of the junixsocket library, as a string, for debugging purposes.
getVSOCKCID() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns the "VSOCK CID" part of this address.
getVSOCKPort() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns the "VSOCK port" part of this address.
getVSOCKReserved1() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns the "VSOCK reserved1" part of this address.

H

hasFilename() - Method in class org.newsclub.net.unix.AFGenericSocketAddress
 
hasFilename() - Method in class org.newsclub.net.unix.AFSocketAddress
Checks if the address can be resolved to a File.
hasFilename() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
 
hasFilename() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
 
hasFilename() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
hasFilename() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
 
hasFlag(T) - Method in class org.newsclub.net.unix.NamedIntegerBitmask
Checks if the given flag is set.
hashCode() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
 
hashCode() - Method in class org.newsclub.net.unix.HostAndPort
 
hashCode() - Method in class org.newsclub.net.unix.NamedInteger
 
hasOutboundFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramChannel
 
hasOutboundFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
hasOutboundFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
hasOutboundFileDescriptors() - Method in class org.newsclub.net.unix.AFUNIXSocketChannel
 
hasOutboundFileDescriptors() - Method in interface org.newsclub.net.unix.AFUNIXSocketExtensions
Returns true if there are pending file descriptors to be sent as part of an ancillary message.
HostAndPort - Class in org.newsclub.net.unix
Hostname and port.
HostAndPort(String, int) - Constructor for class org.newsclub.net.unix.HostAndPort
Creates a new hostname and port combination.

I

implCloseSelectableChannel() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
implCloseSelectableChannel() - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
implCloseSelectableChannel() - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
implCloseSelectableChannel() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
implCloseSelectableChannel() - Method in class org.newsclub.net.unix.AFSocketChannel
 
implConfigureBlocking(boolean) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
implConfigureBlocking(boolean) - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
implConfigureBlocking(boolean) - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
implConfigureBlocking(boolean) - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
implConfigureBlocking(boolean) - Method in class org.newsclub.net.unix.AFSocketChannel
 
inAbstractNamespace(String) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Convenience method to create an AFUNIXSocketAddress in the abstract namespace.
inAbstractNamespace(String, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Convenience method to create an AFUNIXSocketAddress in the abstract namespace.
init(T[]) - Static method in class org.newsclub.net.unix.NamedInteger
Ensures that the VALUES array is configured correctly.
InvalidArgumentSocketException - Exception Class in org.newsclub.net.unix
A SocketException that may be thrown upon some "invalid argument" being passed into native code (i.e., EINVAL is returned).
InvalidArgumentSocketException() - Constructor for exception class org.newsclub.net.unix.InvalidArgumentSocketException
InvalidArgumentSocketException(String) - Constructor for exception class org.newsclub.net.unix.InvalidArgumentSocketException
InvalidSocketException - Exception Class in org.newsclub.net.unix
A SocketException that may be thrown upon some "invalid" state, mostly detected in native code.
InvalidSocketException() - Constructor for exception class org.newsclub.net.unix.InvalidSocketException
Constructs a new InvalidSocketException.
InvalidSocketException(String) - Constructor for exception class org.newsclub.net.unix.InvalidSocketException
Constructs a new InvalidSocketException.
isAvailable(Class<?>) - Method in class org.newsclub.net.unix.FileDescriptorCast
Checks if the instance can be cast as the given desired type (using FileDescriptorCast.as(Class)).
isBlocking() - Method in interface org.newsclub.net.unix.AFSomeSocketChannel
Checks if the channel is configured blocking.
isBound() - Method in class org.newsclub.net.unix.AFDatagramChannel
Returns the binding state of the socket.
isBound() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
isBound() - Method in class org.newsclub.net.unix.AFServerSocket
 
isBound() - Method in class org.newsclub.net.unix.AFSocket
 
isClosed() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
isClosed() - Method in class org.newsclub.net.unix.AFServerSocket
 
isClosed() - Method in class org.newsclub.net.unix.AFSocket
 
isClosed() - Method in class org.newsclub.net.unix.Closeables
Checks if this instance has been closed already.
isConnected() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
isConnected() - Method in class org.newsclub.net.unix.AFDatagramSocket
 
isConnected() - Method in class org.newsclub.net.unix.AFSocket
 
isConnected() - Method in class org.newsclub.net.unix.AFSocketChannel
 
isConnectionPending() - Method in class org.newsclub.net.unix.AFSocketChannel
 
isDeleteOnClose() - Method in class org.newsclub.net.unix.AFDatagramChannel
Checks if this DatagramSocket's bound filename should be removed upon AbstractInterruptibleChannel.close().
isDeleteOnClose() - Method in class org.newsclub.net.unix.AFDatagramSocket
Checks if this AFDatagramSocket's bound filename should be removed upon AFDatagramSocket.close().
isDeleteOnClose() - Method in class org.newsclub.net.unix.AFServerSocket
Checks if this AFServerSocket's file should be removed upon AFServerSocket.close().
isDeleteOnClose() - Method in class org.newsclub.net.unix.AFServerSocketChannel
Checks if this AFServerSocketChannel's file should be removed upon AbstractInterruptibleChannel.close().
isEmpty() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Checks if neither of the possible peer credentials are set.
isHostnameSupported(String) - Method in interface org.newsclub.net.unix.AFSocketAddressFromHostname
Checks whether the given hostname is supported by this socket factory.
isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory
 
isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
 
isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.SystemProperty
 
isHostnameSupported(String) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
 
isInAbstractNamespace() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
Checks if the address is in the abstract namespace (or, for Haiku OS, in the internal namespace).
isInetAddressSupported(InetAddress) - Method in class org.newsclub.net.unix.AFSocketFactory
Checks whether the given InetAddress is supported by this socket factory.
isLocalSocketAddressValid() - Method in class org.newsclub.net.unix.AFServerSocket
Checks if the local socket address returned by AFServerSocket.getLocalSocketAddress() is still valid.
isLocalSocketAddressValid() - Method in class org.newsclub.net.unix.AFServerSocketChannel
Checks if the local socket address returned by AFServerSocketChannel.getLocalAddress() is still valid.
isRunningOnAndroid() - Static method in class org.newsclub.net.unix.AFSocket
Checks if we're running on Android (as far as junixsocket is concerned).
isSupported() - Static method in class org.newsclub.net.unix.AFServerSocket
Checks whether everything is setup to support junixsocket sockets.
isSupported() - Static method in class org.newsclub.net.unix.AFSocket
Returns true iff AFSockets are supported by the current Java VM.
isSupported() - Static method in class org.newsclub.net.unix.AFUNIXSocket
Returns true iff AFUNIXSockets are supported by the current Java VM.
isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Checks if an InetAddress can be unwrapped to an AFGenericSocketAddress.
isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Checks if an InetAddress can be unwrapped to an AFSYSTEMSocketAddress.
isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Checks if an InetAddress can be unwrapped to an AFTIPCSocketAddress.
isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Checks if an InetAddress can be unwrapped to an AFUNIXSocketAddress.
isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Checks if an InetAddress can be unwrapped to an AFVSOCKSocketAddress.
isSupportedAddress(InetAddress, AFAddressFamily<?>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Checks if the given address is supported by this address family.
isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Checks if a SocketAddress can be unwrapped to an AFGenericSocketAddress.
isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Checks if a SocketAddress can be unwrapped to an AFSYSTEMSocketAddress.
isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Checks if a SocketAddress can be unwrapped to an AFTIPCSocketAddress.
isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Checks if a SocketAddress can be unwrapped to an AFUNIXSocketAddress.
isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Checks if a SocketAddress can be unwrapped to an AFVSOCKSocketAddress.
isUseDeserializationForInit() - Static method in class org.newsclub.net.unix.AFSocketAddress
Checks if AFSocketAddress instantiation should be performed via deserialization.
isVirtualThread() - Static method in class org.newsclub.net.unix.ThreadUtil
Checks if the current Thread is to be considered a virtual thread.
isVirtualThreadSupported() - Static method in class org.newsclub.net.unix.ThreadUtil
Checks if virtual threads are considered to be supported (and therefore if special support should be enabled).

J

join(InetAddress) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
join(InetAddress, NetworkInterface) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
join(InetAddress, NetworkInterface, InetAddress) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
joinGroup(SocketAddress, NetworkInterface) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 

K

KnownJavaBugIOException - Exception Class in org.newsclub.net.unix
Thrown when a known Java/JRE/JDK bug was encountered.
KnownJavaBugIOException() - Constructor for exception class org.newsclub.net.unix.KnownJavaBugIOException
Constructs an KnownJDKBugIOException with null as its error detail message.
KnownJavaBugIOException(String) - Constructor for exception class org.newsclub.net.unix.KnownJavaBugIOException
Constructs an IOException with the specified detail message.
KnownJavaBugIOException(String, Throwable) - Constructor for exception class org.newsclub.net.unix.KnownJavaBugIOException
Constructs an IOException with the specified detail message and cause.
KnownJavaBugIOException(Throwable) - Constructor for exception class org.newsclub.net.unix.KnownJavaBugIOException
Constructs an IOException with the specified cause and null as its error detail message.

L

leave(InetAddress) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
leaveGroup(SocketAddress, NetworkInterface) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
listen(int) - Method in class org.newsclub.net.unix.AFDatagramSocket
Sets this socket into "listen" state, which allows subsequent calls to AFDatagramSocket.accept() receive any connection attempt.
listen(int) - Method in class org.newsclub.net.unix.AFSocketImpl
 

M

main(String[]) - Static method in class org.newsclub.net.unix.AFUNIXSocket
Very basic self-test function.
mapOrFail(SocketAddress) - Static method in class org.newsclub.net.unix.AFSocketAddress
Maps the given address to an AFSocketAddress.
mapOrFail(SocketAddress, Class<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Maps the given address to a specific AFSocketAddress type.

N

name() - Method in class org.newsclub.net.unix.AFSocketOption
 
name() - Method in class org.newsclub.net.unix.NamedInteger
Returns the name.
name() - Method in class org.newsclub.net.unix.NamedIntegerBitmask
Returns the name of the flag / flag set.
NamedInteger - Class in org.newsclub.net.unix
A "named integer", usually used for constants.
NamedInteger(int) - Constructor for class org.newsclub.net.unix.NamedInteger
Creates a new NamedInteger instance, without actually naming it.
NamedInteger(String, int) - Constructor for class org.newsclub.net.unix.NamedInteger
Creates a new NamedInteger instance.
NamedInteger.HasOfValue - Interface in org.newsclub.net.unix
Marks a subclass that provides a method "public static T ofValue(int v)" that allows casting an integer to this type via reflection.
NamedInteger.UndefinedValueConstructor<T> - Interface in org.newsclub.net.unix
Constructor for "undefined" values.
NamedIntegerBitmask<T> - Class in org.newsclub.net.unix
Describes a 32-bit bitmask that supports named flags.
NamedIntegerBitmask(String, int) - Constructor for class org.newsclub.net.unix.NamedIntegerBitmask
Creates a new named flag.
NamedIntegerBitmask.Constructor<T> - Interface in org.newsclub.net.unix
Creates a new instance.
newAFSocketAddress(int, byte[], ObjectPool.Lease<ByteBuffer>) - Method in interface org.newsclub.net.unix.AFSocketAddress.AFSocketAddressConstructor
Constructs a new AFSocketAddress instance.
newBoundServerSocket() - Method in class org.newsclub.net.unix.AFSocketAddress
Creates a new server socket bound to this address.
newBoundServerSocket() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
newChannel() - Method in class org.newsclub.net.unix.AFDatagramSocket
Creates a new DatagramChannel that is associated with this socket.
newChannel() - Method in class org.newsclub.net.unix.AFServerSocket
Creates a new AFServerSocketChannel for this socket.
newChannel() - Method in class org.newsclub.net.unix.AFSocket
Creates a new AFSocketChannel for this socket.
newChannel() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
newChannel() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
 
newChannel() - Method in class org.newsclub.net.unix.AFUNIXSocket
 
newConnectedSocket() - Method in class org.newsclub.net.unix.AFSocketAddress
Creates a new socket connected to this address.
newConnectedSocket() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
newDatagramSocketInstance() - Method in class org.newsclub.net.unix.AFDatagramSocket
Returns a new AFDatagramSocket instance to be used for AFDatagramSocket.accept(), i.e., no FileDescriptor is associated.
newDatagramSocketInstance() - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
newDeserializedAFSocketAddress(int, byte[], ObjectPool.Lease<ByteBuffer>, AFAddressFamily<A>, AFSocketAddress.AFSocketAddressConstructor<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Returns a new AFSocketAddress instance via deserialization.
newForceBoundServerSocket() - Method in class org.newsclub.net.unix.AFSocketAddress
Creates a new server socket force-bound to this address (i.e., any additional call to ServerSocket.bind(SocketAddress) will ignore the passed address and use this one instead.
newForceBoundServerSocket() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
newImpl(FileDescriptor) - Method in class org.newsclub.net.unix.AFServerSocket
Creates a new AFSocketImpl.
newImpl(FileDescriptor) - Method in class org.newsclub.net.unix.AFUNIXServerSocket
 
newInputStream() - Method in class org.newsclub.net.unix.AFSocketImpl
Creates a new InputStream for this socket.
newInstance() - Method in interface org.newsclub.net.unix.AFSocketChannel.AFSocketSupplier
Returns a new AFSocket instance.
newInstance() - Static method in class org.newsclub.net.unix.AFUNIXDatagramSocket
Returns a new AFUNIXDatagramSocket instance.
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 AFSocket.
newInstance(int) - Method in interface org.newsclub.net.unix.NamedInteger.UndefinedValueConstructor
Creates a new "undefined" value instance.
newInstance(FileDescriptor) - Method in interface org.newsclub.net.unix.AFServerSocket.Constructor
Creates a new AFServerSocket instance.
newInstance(FileDescriptor, AFSocketFactory<A>) - Method in interface org.newsclub.net.unix.AFSocket.Constructor
Constructs a new AFSocket subclass instance.
newInstance(String, int) - Method in interface org.newsclub.net.unix.NamedIntegerBitmask.Constructor
Creates a new instance.
newInstance(AFDatagramSocket.Constructor<A>) - Static method in class org.newsclub.net.unix.AFDatagramSocket
Returns a new AFDatagramSocket instance.
newInstance(AFDatagramSocket.Constructor<A>, FileDescriptor, int, int) - Static method in class org.newsclub.net.unix.AFDatagramSocket
Creates a new AFDatagramSocket.
newInstance(AFServerSocket.Constructor<A>) - Static method in class org.newsclub.net.unix.AFServerSocket
Creates a new AFServerSocket instance, using the given subclass constructor.
newInstance(AFServerSocket.Constructor<A>, FileDescriptor, int, int) - Static method in class org.newsclub.net.unix.AFServerSocket
Creates a new AFServerSocket instance, using the given subclass constructor.
newInstance(AFSocket.Constructor<A>, AFSocketFactory<A>) - Static method in class org.newsclub.net.unix.AFSocket
Creates a new, unbound AFSocket.
newInstance(AFSocketType) - Static method in class org.newsclub.net.unix.AFUNIXDatagramSocket
Returns a new AFUNIXDatagramSocket instance for the given socket type.
newOutputStream() - Method in class org.newsclub.net.unix.AFSocketImpl
Creates a new OutputStream for this socket.
newServerSocket() - Method in class org.newsclub.net.unix.AFAddressFamily
Creates a new, unconnected, unbound server socket compatible with this socket address.
newServerSocketChannel() - Method in class org.newsclub.net.unix.AFAddressFamily
Creates a new, unconnected, unbound ServerSocketChannel compatible with this socket address.
newSocket() - Method in class org.newsclub.net.unix.AFAddressFamily
Creates a new, unconnected, unbound socket compatible with this socket address.
newSocket() - Method in class org.newsclub.net.unix.AFSelectorProvider
Constructs a new socket.
newSocket() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
newSocket(FileDescriptor) - Method in interface org.newsclub.net.unix.AFDatagramSocket.Constructor
Constructs a new DatagramSocket instance.
newSocketChannel() - Method in class org.newsclub.net.unix.AFAddressFamily
Creates a new, unconnected, unbound SocketChannel compatible with this socket address.
newSocketInstance() - Method in class org.newsclub.net.unix.AFServerSocket
Returns a new AFSocket instance.
newSocketInstance() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
Returns a new AFSocket instance.
newSocketPair(P, P) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
newSocketPair(Y, Y) - Method in class org.newsclub.net.unix.AFSelectorProvider
Constructs a new socket pair from two sockets.
newStrictInstance() - Static method in class org.newsclub.net.unix.AFUNIXSocket
Creates a new, unbound, "strict" AFSocket.
newVirtualThreadPerTaskExecutor() - Static method in class org.newsclub.net.unix.ThreadUtil
Returns a new "virtual thread per task executor".
NoSuchDeviceSocketException - Exception Class in org.newsclub.net.unix
A SocketException that may be thrown upon some "no such device" condition from native code (e.g., ENODEV is returned).
NoSuchDeviceSocketException() - Constructor for exception class org.newsclub.net.unix.NoSuchDeviceSocketException
Constructs a new NoSuchDeviceSocketException.
NoSuchDeviceSocketException(String) - Constructor for exception class org.newsclub.net.unix.NoSuchDeviceSocketException
Constructs a new NoSuchDeviceSocketException.
NotBoundSocketException - Exception Class in org.newsclub.net.unix
A SocketException indicating that a socket was not bound when attempting to read or write.
NotBoundSocketException() - Constructor for exception class org.newsclub.net.unix.NotBoundSocketException
Constructs a new NotBoundSocketException.
NotConnectedSocketException - Exception Class in org.newsclub.net.unix
A SocketException indicating that a socket was not connected when attempting to read or write.
NotConnectedSocketException() - Constructor for exception class org.newsclub.net.unix.NotConnectedSocketException
Constructs a new NotConnectedSocketException.
NotConnectedSocketException(String) - Constructor for exception class org.newsclub.net.unix.NotConnectedSocketException
Constructs a new NotConnectedSocketException.
nullBindAddress() - Method in class org.newsclub.net.unix.AFAddressFamily
Returns an appropriate SocketAddress to be used when calling bind with a null argument.
nullBindAddress() - Method in class org.newsclub.net.unix.AFSocketAddressConfig
Returns an appropriate SocketAddress to be used when calling bind with a null argument.

O

of(byte[]) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given byte sequence.
of(byte[], int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given byte sequence, assigning the given port to it.
of(File) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given file.
of(File, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given file, assigning the given port to it.
of(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress based on the given SocketAddress.
of(URI) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns an AFGenericSocketAddress for the given URI, if possible.
of(URI) - Static method in class org.newsclub.net.unix.AFSocketAddress
Tries to parse the given URI and return a corresponding AFSocketAddress for it.
of(URI) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress for the given URI, if possible.
of(URI) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress for the given URI, if possible.
of(URI) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress for the given URI, if possible.
of(URI) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress for the given URI, if possible.
of(URI, int) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns an AFGenericSocketAddress for the given URI, if possible.
of(URI, int) - Static method in class org.newsclub.net.unix.AFSocketAddress
Tries to parse the given URI and return a corresponding AFSocketAddress for it.
of(URI, int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress for the given URI, if possible.
of(URI, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress for the given URI, if possible.
of(URI, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress for the given URI, if possible.
of(URI, int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress for the given URI, if possible.
of(Path) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given path.
of(Path, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to the AF_UNIX socket specified by the given path, assigning the given port to it.
ofAnyHostPort() - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress, especially useful for binding, that refers to "any" port on the host; the "java port" is set to -1.
ofAnyHypervisorPort() - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress, especially useful for binding, that refers to "any" port on the hypervisor; the "java port" is set to -1.
ofAnyLocalPort() - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress, especially useful for binding, that refers to "any" port with the local/loopback CID; the "java port" is set to -1.
ofAnyPort() - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress, especially useful for binding, that refers to "any" port and CID; the "java port" is set to -1.
ofHostPort(int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress that refers to a given VSOCK port on the host; the "java port" is set to -1.
ofHypervisorPort(int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress that refers to a given VSOCK port on the hypervisor; the "java port" is set to -1.
ofLocalPort(int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress that refers to the given port with the local/loopback CID; the "java port" is set to -1.
ofNewTempFile() - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to a temporary, non-existent but accessible path in the file system.
ofNewTempPath(int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress that points to a temporary, non-existent but accessible path in the file system, assigning the given port to it.
ofPortAndCID(int, int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress that refers to a given VSOCK port and CID; the "java port" is set to -1.
ofPortAndCID(int, int, int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress that refers to a given port and CID.
ofPortWithAnyCID(int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress, especially useful for binding, that refers to the given port with "any CID"; the "java port" is set to -1.
ofService(int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service type and instance, implicitly using cluster scope (AFTIPCSocketAddress.Scope.SCOPE_CLUSTER).
ofService(int, AFTIPCSocketAddress.Scope, int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service type and instance, using the given scope and the given lookup domain.
ofService(AFTIPCSocketAddress.Scope, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service type and instance, using the given scope.
ofService(AFTIPCSocketAddress.Scope, int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service type and instance, using the given scope and the given lookup domain.
ofServiceRange(int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service range type and instance boundaries (lower/upper values), implicitly using cluster scope (AFTIPCSocketAddress.Scope.SCOPE_CLUSTER).
ofServiceRange(int, AFTIPCSocketAddress.Scope, int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service range type and instance boundaries (lower/upper values), implicitly using cluster scope (AFTIPCSocketAddress.Scope.SCOPE_CLUSTER).
ofServiceRange(AFTIPCSocketAddress.Scope, int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given service range type and instance boundaries (lower/upper values), using the given scope.
ofSocket(int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given TIPC socket address (i.e., referring to a particular socket instance instead of a service address).
ofSocket(int, int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to a given TIPC socket address (i.e., referring to a particular socket instance instead of a service address).
ofSysAddrIdUnit(int, AFSYSTEMSocketAddress.SysAddr, int, int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress that refers to a given AF_SYSTEM socket address (i.e., referring to a particular socket instance instead of a service address).
ofSysAddrIdUnit(AFSYSTEMSocketAddress.SysAddr, int, int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress that refers to a given AF_SYSTEM socket address (i.e., referring to a particular socket instance instead of a service address).
ofTopologyService() - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress that refers to the topology service.
ofValue(int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress.SysAddr
Returns a AFSYSTEMSocketAddress.SysAddr for the given custom value.
ofValue(int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress.Scope
Returns a AFTIPCSocketAddress.Scope instance given an integer value.
ofValue(T[], NamedInteger.UndefinedValueConstructor<T>, int) - Static method in class org.newsclub.net.unix.NamedInteger
Returns an instance given an integer value.
open() - Static method in class org.newsclub.net.unix.AFPipe
Opens an AFPipe.
open() - Static method in class org.newsclub.net.unix.AFUNIXDatagramChannel
Opens a datagram channel.
open() - Static method in class org.newsclub.net.unix.AFUNIXServerSocketChannel
Opens a server-socket channel.
open() - Static method in class org.newsclub.net.unix.AFUNIXSocketChannel
Opens a socket channel.
open() - Static method in class org.newsclub.net.unix.AFUNIXSocketPair
Opens a socket pair of interconnected channels.
open(ProtocolFamily) - Static method in class org.newsclub.net.unix.AFDatagramChannel
Opens a datagram channel.
open(ProtocolFamily) - Static method in class org.newsclub.net.unix.AFServerSocketChannel
Opens a server-socket channel.
open(ProtocolFamily) - Static method in class org.newsclub.net.unix.AFSocketChannel
Opens a socket channel.
open(ProtocolFamily) - Static method in class org.newsclub.net.unix.AFUNIXDatagramChannel
Opens a datagram channel.
open(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketChannel
Opens a socket channel, connecting to the given socket address.
open(AFSocketChannel.AFSocketSupplier<A>) - Static method in class org.newsclub.net.unix.AFSocketChannel
Opens a socket channel.
open(AFSocketChannel.AFSocketSupplier<A>, SocketAddress) - Static method in class org.newsclub.net.unix.AFSocketChannel
Opens a socket channel, connecting to the given socket address.
openDatagram() - Static method in class org.newsclub.net.unix.AFUNIXSocketPair
Opens a socket pair of interconnected datagram channels.
openDatagram(AFSocketType) - Static method in class org.newsclub.net.unix.AFUNIXSocketPair
Opens a socket pair of interconnected DatagramChannels, using the given socket type.
openDatagramChannel() - Method in interface org.newsclub.net.unix.AFProtocolFamily
Creates a new datagram channel compatible with this protocol family.
openDatagramChannel() - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openDatagramChannel() - Method in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
 
openDatagramChannel() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openDatagramChannel(ProtocolFamily) - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openDatagramChannel(ProtocolFamily) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openDatagramChannel(AFSocketType) - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a DatagramChannel using the given socket type.
openDatagramChannel(AFSocketType) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openDatagramChannelPair() - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a socket pair of interconnected datagram channels.
openDatagramChannelPair() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openDatagramChannelPair(AFSocketType) - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a socket pair of interconnected DatagramChannels, using the given AFSocketType.
openDatagramChannelPair(AFSocketType) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openPipe() - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openSelector() - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openServerSocketChannel() - Method in interface org.newsclub.net.unix.AFProtocolFamily
Creates a new server socket channel compatible with this protocol family.
openServerSocketChannel() - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openServerSocketChannel() - Method in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
 
openServerSocketChannel() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openServerSocketChannel(ProtocolFamily) - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openServerSocketChannel(SocketAddress) - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a server-socket channel bound on the given SocketAddress.
openServerSocketChannel(SocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openSocketChannel() - Method in interface org.newsclub.net.unix.AFProtocolFamily
Creates a new socket channel compatible with this protocol family.
openSocketChannel() - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openSocketChannel() - Method in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
 
openSocketChannel() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openSocketChannel(ProtocolFamily) - Method in class org.newsclub.net.unix.AFSelectorProvider
 
openSocketChannel(SocketAddress) - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a socket channel connected to the given SocketAddress.
openSocketChannel(SocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
openSocketChannelPair() - Method in class org.newsclub.net.unix.AFSelectorProvider
Opens a socket pair of interconnected channels.
openSocketChannelPair() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
OperationNotSupportedSocketException - Exception Class in org.newsclub.net.unix
A SocketException that may be thrown upon some "unsupported operation" condition from native code (e.g., ENOTSUP, EOPNOTSUPP, EPROTONOSUPPORT, ESOCKTNOSUPPORT, EPFNOSUPPORT, EAFNOSUPPORT is returned).
OperationNotSupportedSocketException() - Constructor for exception class org.newsclub.net.unix.OperationNotSupportedSocketException
OperationNotSupportedSocketException(String) - Constructor for exception class org.newsclub.net.unix.OperationNotSupportedSocketException
org.newsclub.net.unix - module org.newsclub.net.unix
The common junixsocket classes.
org.newsclub.net.unix - package org.newsclub.net.unix
The junixsocket base implementation, including support for AF_UNIX sockets.

P

parseFrom(URI) - Static method in class org.newsclub.net.unix.HostAndPort
Tries to extract hostname and port information from the given URI.
parseUnsignedInt(String, int) - Static method in class org.newsclub.net.unix.AFSocketAddress
Parses the string argument as an unsigned integer in the radix specified by the second argument.
parseURI(URI, int) - Method in class org.newsclub.net.unix.AFSocketAddressConfig
Tries to parse the given address-specific URI.
peek(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocket
Reads the next received packet without actually removing it from the queue.
peek(InetAddress) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
peekData(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
printStackTrace(Throwable) - Static method in class org.newsclub.net.unix.StackTraceUtil
Print/Log the stack trace of the given Throwable.
printStackTraceSevere(Throwable) - Static method in class org.newsclub.net.unix.StackTraceUtil
Print/Log the stack trace of the given Throwable, marking this entry as a "severe condition".
protocolFamily() - Method in class org.newsclub.net.unix.AFSelectorProvider
Returns the protocol family supported by this implementation.
protocolFamily() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
 
provider() - Static method in class org.newsclub.net.unix.AFSelectorProvider
Returns the singleton instance for an "fallback" provider that supports the methods taking ProtocolFamily, as long as a junixsocket-specific AFProtocolFamily is used.
provider() - Static method in class org.newsclub.net.unix.AFUNIXSelectorProvider
Returns the singleton instance.

R

read(ByteBuffer) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
read(ByteBuffer) - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
read(ByteBuffer) - Method in class org.newsclub.net.unix.AFSocketChannel
 
read(ByteBuffer[]) - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
read(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
read(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFPipe.SourceChannel
 
read(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFSocketChannel
 
receive(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
receive(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
receive(ByteBuffer) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
registerAddressFamily(String, Class<A>, AFSocketAddressConfig<A>) - Static method in class org.newsclub.net.unix.AFAddressFamily
Registers an address family.
registerAddressFamilyImpl(String, AFAddressFamily<A>, AFAddressFamilyConfig<A>) - Static method in class org.newsclub.net.unix.AFAddressFamily
Registers an implementation.
remotePeerCredentials() - Static method in class org.newsclub.net.unix.AFUNIXSocketCredentials
Returns the AFUNIXSocketCredentials for the currently active remote session, or null if 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.AFServerSocket
Unregisters a previously registered Closeable.
removeCloseable(Closeable) - Method in class org.newsclub.net.unix.AFSocket
Unregisters a previously registered Closeable.
resolve(T[], T, NamedIntegerBitmask.Constructor<T>, int) - Static method in class org.newsclub.net.unix.NamedIntegerBitmask
Returns a NamedIntegerBitmask instance given a flag value.
resolve(T[], T, NamedIntegerBitmask.Constructor<T>, T[]) - Static method in class org.newsclub.net.unix.NamedIntegerBitmask
Returns a NamedIntegerBitmask instance given a series of flags.
resolveAddress(byte[], int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Resolves a junixsocket-specific byte-array representation of an AFSocketAddress to an actual AFSocketAddress instance, possibly reusing a cached instance.
runOnSystemThread(Runnable) - Static method in class org.newsclub.net.unix.ThreadUtil
Ensures that the given operation is being executed on a system thread.

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.
SCOPE_CLUSTER - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.Scope
Cluster-wide scope.
SCOPE_NODE - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.Scope
Node-only scope.
SCOPE_NOT_SPECIFIED - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.Scope
Scope not specified (for example, when using socket addresses).
selectorProviderClassname() - Method in class org.newsclub.net.unix.AFSocketAddressConfig
Returns the name of the implementation's selector provider class.
send(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
send(DatagramPacket) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
send(ByteBuffer, SocketAddress) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
sendUrgentData(int) - Method in class org.newsclub.net.unix.AFSocketImpl
 
serverSocketChannelClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's ServerSocketChannel class.
serverSocketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's ServerSocket class.
serverSocketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's ServerSocket constructor.
SERVICE_ADDR - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.AddressType
Describes a TIPC "service" address.
SERVICE_RANGE - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.AddressType
Describes a TIPC "service range" address.
setAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
setAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
setAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFSocket
 
setAncillaryReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFSocketChannel
 
setAncillaryReceiveBufferSize(int) - Method in interface org.newsclub.net.unix.AFSocketExtensions
Sets the size of the receive buffer for ancillary messages (in bytes).
setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFDatagramChannel
Enables/disables deleting this DatagramSocket's bound filename upon AbstractInterruptibleChannel.close().
setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFDatagramSocket
Enables/disables deleting this AFDatagramSocket's bound filename upon AFDatagramSocket.close().
setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocket
Enables/disables deleting this AFServerSocket's file (or other resource type) upon AFServerSocket.close().
setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocketChannel
Enables/disables deleting this AFServerSocketChannel's file (or other resource type) upon AbstractInterruptibleChannel.close().
setOption(int, Object) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
setOption(int, Object) - Method in class org.newsclub.net.unix.AFSocketImpl
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFServerSocket
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFSocketChannel
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFSocketImpl
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
setOption(SocketOption<T>, T) - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
setOption(AFSocketOption<T>, T) - Method in class org.newsclub.net.unix.AFDatagramSocket
Sets the value of a socket option.
setOptionLenient(int, Object) - Method in class org.newsclub.net.unix.AFSocketImpl
Like AFSocketImpl.setOption(int, Object), but ignores exceptions for certain option IDs.
setOutboundFileDescriptors(FileDescriptor...) - Method in class org.newsclub.net.unix.AFUNIXDatagramChannel
 
setOutboundFileDescriptors(FileDescriptor...) - Method in class org.newsclub.net.unix.AFUNIXDatagramSocket
 
setOutboundFileDescriptors(FileDescriptor...) - Method in class org.newsclub.net.unix.AFUNIXSocket
 
setOutboundFileDescriptors(FileDescriptor...) - Method in class org.newsclub.net.unix.AFUNIXSocketChannel
 
setOutboundFileDescriptors(FileDescriptor...) - Method in interface org.newsclub.net.unix.AFUNIXSocketExtensions
Sets a list of FileDescriptors that should be sent as an ancillary message along with the next write.
setPerformancePreferences(int, int, int) - Method in class org.newsclub.net.unix.AFServerSocket
 
setReceiveBufferSize(int) - Method in class org.newsclub.net.unix.AFServerSocket
 
setReuseAddress(boolean) - Method in class org.newsclub.net.unix.AFServerSocket
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFDatagramSocket
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocket
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFSocket
 
setShutdownOnClose(boolean) - Method in class org.newsclub.net.unix.AFSocketChannel
 
setShutdownOnClose(boolean) - Method in interface org.newsclub.net.unix.AFSomeSocketThing
Configures whether the socket should be shutdown upon Closeable.close(), which is the default.
setSoTimeout(int) - Method in class org.newsclub.net.unix.AFServerSocket
 
setTimeToLive(int) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
setTreatAsVirtualThread(boolean) - Static method in class org.newsclub.net.unix.ThreadUtil
Marks the current platform Thread to be treated as a virtual thread, if possible.
setTTL(byte) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
Deprecated.
shutdown() - Method in class org.newsclub.net.unix.AFSocketImpl
Shuts down both input and output at once.
shutdownInput() - Method in class org.newsclub.net.unix.AFSocketChannel
 
shutdownInput() - Method in class org.newsclub.net.unix.AFSocketImpl
 
shutdownOutput() - Method in class org.newsclub.net.unix.AFSocketChannel
 
shutdownOutput() - Method in class org.newsclub.net.unix.AFSocketImpl
 
sink() - Method in class org.newsclub.net.unix.AFPipe
 
SOCK_DGRAM - Enum constant in enum class org.newsclub.net.unix.AFSocketType
Datagram-oriented socket.
SOCK_RAW - Enum constant in enum class org.newsclub.net.unix.AFSocketType
Raw mode.
SOCK_RDM - Enum constant in enum class org.newsclub.net.unix.AFSocketType
Reliably-delivered datagram messages.
SOCK_SEQPACKET - Enum constant in enum class org.newsclub.net.unix.AFSocketType
Sequential packet socket.
SOCK_STREAM - Enum constant in enum class org.newsclub.net.unix.AFSocketType
Stream-oriented socket.
socket() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
socket() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
socket() - Method in class org.newsclub.net.unix.AFSocketChannel
 
SOCKET_ADDR - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress.AddressType
Describes a TIPC "socket" address.
socketAddressClass() - Method in class org.newsclub.net.unix.AFDatagramSocket
Returns the AFSocketAddress type supported by this socket.
socketAddressClass() - Method in class org.newsclub.net.unix.AFSocket
Returns the AFSocketAddress type supported by this socket.
SocketAddressFilter - Interface in org.newsclub.net.unix
A filter that takes a SocketAddress, and potentially changes it, or throws an exception if certain criteria are met.
socketChannelClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's SocketChannel class.
socketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's Socket class.
SocketClosedException - Exception Class in org.newsclub.net.unix
A SocketException indicating that a socket was closed or is not open for other reasons.
SocketClosedException() - Constructor for exception class org.newsclub.net.unix.SocketClosedException
Constructs a new SocketClosedException.
SocketClosedException(String) - Constructor for exception class org.newsclub.net.unix.SocketClosedException
Constructs a new SocketClosedException.
socketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
Returns the implementation's Socket constructor.
source() - Method in class org.newsclub.net.unix.AFPipe
 
StackTraceUtil - Class in org.newsclub.net.unix
Internal helper class to dump stack traces when deemed appropriate.
startNewDaemonThread(boolean, Runnable) - Static method in class org.newsclub.net.unix.ThreadUtil
Starts a new daemon thread.
supportedOptions() - Method in class org.newsclub.net.unix.AFDatagramChannel
 
supportedOptions() - Method in class org.newsclub.net.unix.AFServerSocket
 
supportedOptions() - Method in class org.newsclub.net.unix.AFServerSocketChannel
 
supportedOptions() - Method in class org.newsclub.net.unix.AFSocketChannel
 
supportedOptions() - Method in class org.newsclub.net.unix.AFSocketImpl
 
supportedOptions() - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
 
supports(AFSocketCapability) - Static method in class org.newsclub.net.unix.AFSocket
Checks if the current environment (system platform, native library, etc.) supports a given junixsocket capability.
supports(AFUNIXSocketCapability) - Static method in class org.newsclub.net.unix.AFSocket
Deprecated.
supportsUrgentData() - Method in class org.newsclub.net.unix.AFSocketImpl
 
SystemProperty() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.SystemProperty
Creates a AFUNIXSocketFactory.SystemProperty socket factory.

T

ThreadUtil - Class in org.newsclub.net.unix
Helper class to support certain Thread-specific features.
TIPC_RESERVED_TYPES - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress
The lowest user-publishable name type.
TIPC_TOP_SRV - Static variable in class org.newsclub.net.unix.AFTIPCSocketAddress
The "topology" service name type.
toBytes() - Method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns the native representation of this generic address, which is most likely not portable.
toSocatAddressString(AFSocketType, AFSocketProtocol) - Method in class org.newsclub.net.unix.AFSocketAddress
Returns a address string that can be used with socat's SOCKET-CONNECT, SOCKET-LISTEN, SOCKET-DATAGRAM, etc., address types, or null if the address type is not natively supported by this platform.
toString() - Method in class org.newsclub.net.unix.AFGenericSocketAddress
 
toString() - Method in class org.newsclub.net.unix.AFServerSocket
 
toString() - Method in class org.newsclub.net.unix.AFSocket
 
toString() - Method in class org.newsclub.net.unix.AFSocketChannel
 
toString() - Method in class org.newsclub.net.unix.AFSocketImpl
 
toString() - Method in class org.newsclub.net.unix.AFSocketOption
 
toString() - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
 
toString() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
 
toString() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
toString() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
 
toString() - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
 
toString() - Method in class org.newsclub.net.unix.HostAndPort
 
toString() - Method in class org.newsclub.net.unix.NamedInteger
 
toString() - Method in class org.newsclub.net.unix.NamedIntegerBitmask
 
toURI(String) - Method in class org.newsclub.net.unix.HostAndPort
Returns a URI with this hostname and port.
toURI(String, String, String, String, String) - Method in class org.newsclub.net.unix.HostAndPort
Returns a URI with this hostname and port, potentially using other URI parameters from the given set of parameters.
toURI(String, URI) - Method in class org.newsclub.net.unix.AFGenericSocketAddress
 
toURI(String, URI) - Method in class org.newsclub.net.unix.AFSocketAddress
Tries to create a URI based on this AFSocketAddress.
toURI(String, URI) - Method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
 
toURI(String, URI) - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
 
toURI(String, URI) - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
 
toURI(String, URI) - Method in class org.newsclub.net.unix.AFVSOCKSocketAddress
 
toURI(String, URI) - Method in class org.newsclub.net.unix.HostAndPort
Returns a URI with this hostname and port, potentially reusing other URI parameters from the given template URI (authority, path, query, fragment).
transferFrom(InputStream) - Method in class org.newsclub.net.unix.AFOutputStream
Reads all bytes from the given input stream and writes the bytes to this output stream in the order that they are read.
type() - Method in class org.newsclub.net.unix.AFSocketOption
 

U

UNIX - Enum constant in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
UNIX domain.
Unsafe - Annotation Interface in org.newsclub.net.unix
Declares some operation "unsafe", which is guarded via AFSocketCapability.CAPABILITY_UNSAFE.
unsafeUsing(int) - Static method in class org.newsclub.net.unix.FileDescriptorCast
Creates a FileDescriptorCast using the given native file descriptor value.
unwrap(String, int) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns an AFGenericSocketAddress given a special InetAddress hostname that encodes the byte sequence of an unknown-type socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(String, int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress given a special InetAddress hostname that encodes the byte sequence of an AF_SYSTEM socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(String, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress given a special InetAddress hostname that encodes the byte sequence of an AF_TIPC socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(String, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress given a special InetAddress hostname that encodes the byte sequence of an AF_UNIX socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(String, int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress given a special InetAddress hostname that encodes the byte sequence of an AF_VSOCK socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(String, int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Returns an AFSocketAddress given a special InetAddress hostname that encodes the byte sequence of an AF_UNIX etc. socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns an AFGenericSocketAddress given a special InetAddress that encodes the byte sequence of an unknown-type socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress given a special InetAddress that encodes the byte sequence of an AF_SYSTEM socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress given a special InetAddress that encodes the byte sequence of an AF_TIPC socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress given a special InetAddress that encodes the byte sequence of an AF_UNIX socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress given a special InetAddress that encodes the byte sequence of an AF_VSOCK socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(InetAddress, int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
Returns an AFSocketAddress given a special InetAddress that encodes the byte sequence of an AF_UNIX etc. socket address, like those returned by AFSocketAddress.wrapAddress().
unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFGenericSocketAddress
Returns an AFGenericSocketAddress given a generic SocketAddress.
unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFSYSTEMSocketAddress
Returns an AFSYSTEMSocketAddress given a generic SocketAddress.
unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
Returns an AFTIPCSocketAddress given a generic SocketAddress.
unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
Returns an AFUNIXSocketAddress given a generic SocketAddress.
unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFVSOCKSocketAddress
Returns an AFVSOCKSocketAddress given a generic SocketAddress.
URIScheme() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
Creates a AFUNIXSocketFactory.URIScheme socket factory.
uriSchemes() - Static method in class org.newsclub.net.unix.AFAddressFamily
Returns the set of supported URI schemes that can be parsed to some AFSocketAddress.
uriSchemes() - Method in class org.newsclub.net.unix.AFSocketAddressConfig
Returns the set of supported URI schemes that can be parsed via AFSocketAddressConfig.parseURI(URI,int).
using(FileDescriptor) - Static method in class org.newsclub.net.unix.FileDescriptorCast
Creates a FileDescriptorCast using the given file descriptor.

V

value() - Method in class org.newsclub.net.unix.NamedInteger
Returns the value.
value() - Method in class org.newsclub.net.unix.NamedIntegerBitmask
Returns the value of the flag / flag set.
valueOf(String) - Static method in enum class org.newsclub.net.unix.AFSocketCapability
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.newsclub.net.unix.AFSocketProtocol
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.newsclub.net.unix.AFSocketType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.newsclub.net.unix.AFSocketCapability
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.newsclub.net.unix.AFSocketProtocol
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.newsclub.net.unix.AFSocketType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.newsclub.net.unix.AFUNIXProtocolFamily
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.newsclub.net.unix.AFUNIXSocketCapability
Deprecated.
Returns an array containing the constants of this enum class, in the order they are declared.
VMADDR_CID_ANY - Static variable in class org.newsclub.net.unix.AFVSOCKSocketAddress
"Any address for binding".
VMADDR_CID_HOST - Static variable in class org.newsclub.net.unix.AFVSOCKSocketAddress
The well-known address of the host.
VMADDR_CID_HYPERVISOR - Static variable in class org.newsclub.net.unix.AFVSOCKSocketAddress
Reserved for services built into the hypervisor.
VMADDR_CID_LOCAL - Static variable in class org.newsclub.net.unix.AFVSOCKSocketAddress
The well-known address for local communication (loopback).
VMADDR_PORT_ANY - Static variable in class org.newsclub.net.unix.AFVSOCKSocketAddress
Any port number for binding.

W

withLocalPort(int) - Method in class org.newsclub.net.unix.FileDescriptorCast
Registers the given port number as the "local port" for this file descriptor.
withRemotePort(int) - Method in class org.newsclub.net.unix.FileDescriptorCast
Registers the given port number as the "remote port" for this file descriptor.
wrapAddress() - Method in class org.newsclub.net.unix.AFSocketAddress
Returns a "special" InetAddress that contains information about this AFSocketAddress.
write(ByteBuffer) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
write(ByteBuffer) - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
write(ByteBuffer) - Method in class org.newsclub.net.unix.AFSocketChannel
 
write(ByteBuffer[]) - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
write(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFDatagramChannel
 
write(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFPipe.SinkChannel
 
write(ByteBuffer[], int, int) - Method in class org.newsclub.net.unix.AFSocketChannel
 
writeNativeAddressTo(ByteBuffer) - Method in class org.newsclub.net.unix.AFSocketAddress
Writes the native (system-level) representation of this address to the given buffer.
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form