Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- 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
Closeablethat should be closed when this socket is closed. - addCloseable(Closeable) - Method in class org.newsclub.net.unix.AFSocket
-
Registers a
Closeablethat should be closed when this socket is closed. - addressCharset() - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns the
Charsetused to encode/decodeAFUNIXSocketAddresses. - 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() - 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.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. - 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
- AFAddressFamily<A extends AFSocketAddress> - Class in org.newsclub.net.unix
-
Describes an address family supported by junixsocket.
- AFAddressFamilyConfig<A extends AFSocketAddress> - 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 extends AFSocketAddress> - Class in org.newsclub.net.unix
-
A
DatagramChannelimplementation that works with junixsocket. - AFDatagramChannel(AFSelectorProvider<A>, AFDatagramSocket<A>) - Constructor for class org.newsclub.net.unix.AFDatagramChannel
-
Creates a new
AFDatagramChannelinstance. - AFDatagramSocket<A extends AFSocketAddress> - Class in org.newsclub.net.unix
-
A
DatagramSocketimplementation that works with junixsocket. - AFDatagramSocket(AFDatagramSocketImpl<A>) - Constructor for class org.newsclub.net.unix.AFDatagramSocket
-
Creates a new
AFDatagramSocketinstance. - AFDatagramSocket.Constructor<A extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
A reference to the constructor of an
AFDatagramSocketsubclass. - AFDatagramSocketImpl<A extends AFSocketAddress> - Class in org.newsclub.net.unix
-
A
DatagramSocketImplimplemented by junixsocket. - AFDatagramSocketImpl(AFAddressFamily<A>, FileDescriptor, AFSocketType) - Constructor for class org.newsclub.net.unix.AFDatagramSocketImpl
-
Constructs a new
AFDatagramSocketImplusing the givenFileDescriptor(or null to create a new one). - AFInputStream - Class in org.newsclub.net.unix
-
An
InputStreamforAFSocket, etc. - AFOutputStream - Class in org.newsclub.net.unix
-
An
OutputStreamforAFSocket, 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 theFileDescriptor. - AFPipe.SourceChannel - Class in org.newsclub.net.unix
-
A channel representing the readable end of a
Pipe, with access to theFileDescriptor. - AFSelectorProvider<A extends AFSocketAddress> - 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 extends AFSocketAddress> - 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 extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
The constructor of the concrete subclass.
- AFServerSocketChannel<A extends AFSocketAddress> - 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
AFServerSocketChannelinstance. - AFSocket<A extends AFSocketAddress> - 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
AFSocketinstance. - AFSocket.Constructor<A extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
The reference to the constructor of an
AFSocketsubclass. - AFSocketAddress - Class in org.newsclub.net.unix
-
Some
SocketAddressthat is supported by junixsocket, such asAFUNIXSocketAddress. - AFSocketAddress(int, byte[], ByteBuffer, AFAddressFamily<?>) - Constructor for class org.newsclub.net.unix.AFSocketAddress
-
Creates a new socket address.
- AFSocketAddress(Class<SentinelSocketAddress>, int) - Constructor for class org.newsclub.net.unix.AFSocketAddress
-
Only for
SentinelSocketAddress. - AFSocketAddress.AFSocketAddressConstructor<T extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
A reference to the constructor of an AFSocketAddress subclass.
- AFSocketAddressConfig<A extends AFSocketAddress> - Class in org.newsclub.net.unix
-
The implementation-specifics for a given
AFSocketAddresssubclass implementation. - AFSocketAddressConfig() - Constructor for class org.newsclub.net.unix.AFSocketAddressConfig
-
Constructor.
- AFSocketAddressFromHostname<A extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
Helps converting an internet "hostname" to an
AFSocketAddress. - AFSocketCapability - Enum in org.newsclub.net.unix
-
Describes junixsocket capabilities the current environment (system platform, native library, etc.) may or may not support.
- AFSocketChannel<A extends AFSocketAddress> - 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 extends AFSocketAddress> - Interface in org.newsclub.net.unix
-
A reference to a method that provides an
AFSocketinstance. - 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 extends AFSocketAddress> - Class in org.newsclub.net.unix
-
The base for a SocketFactory that connects to UNIX sockets.
- AFSocketFactory() - 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 extends AFSocketAddress> - Class in org.newsclub.net.unix
-
junixsocket-based
SocketImpl. - AFSocketImpl(AFAddressFamily<A>, FileDescriptor) - Constructor for class org.newsclub.net.unix.AFSocketImpl
-
Creates a new
AFSocketImplinstance. - AFSocketImplExtensions<A extends AFSocketAddress> - 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 extends AFSomeSocket> - 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 in org.newsclub.net.unix
-
Describes the "protocol" part of a socket.
- AFSocketType - Enum 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 andDatagramSockets. - AFTIPCSocketAddress - Class in org.newsclub.net.unix
-
An
AFSocketAddressfor 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
DatagramChannelimplementation that works with AF_UNIX Unix domain sockets. - AFUNIXDatagramSocket - Class in org.newsclub.net.unix
-
A
DatagramSocketimplementation that works with AF_UNIX Unix domain sockets. - AFUNIXProtocolFamily - Enum in org.newsclub.net.unix
-
Describes the protocol family supported by
AFUNIXSocketAddressetc. - 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
InetSocketAddressthat actually uses AF_UNIX sockets instead of AF_INET. - AFUNIXSocketCapability - Enum 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
-
Creates a
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 extends AFSomeSocket> - Class in org.newsclub.net.unix
-
A pair of sockets.
- 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(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.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
ServerSocket.bind(SocketAddress)andAFServerSocket.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
ServerSocketthat is bound to the given path. - bindOn(Path, boolean) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new AF_UNIX
ServerSocketthat is bound to the given path. - bindOn(AFServerSocket.Constructor<A>, A, boolean) - Static method in class org.newsclub.net.unix.AFServerSocket
-
Returns a new
ServerSocketthat is bound to the givenAFSocketAddress. - bindOn(AFServerSocket.Constructor<A>, AFSocketAddress) - Static method in class org.newsclub.net.unix.AFServerSocket
-
Returns a new
ServerSocketthat is bound to the givenAFSocketAddress. - bindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new AF_UNIX
ServerSocketthat is bound to the givenAFUNIXSocketAddress. - bindOn(AFUNIXSocketAddress, boolean) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new AF_UNIX
ServerSocketthat is bound to the givenAFSocketAddress.
C
- CAPABILITY_ABSTRACT_NAMESPACE - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Socket addressing supports the abstract namespace (Linux).
- CAPABILITY_ABSTRACT_NAMESPACE - Enum constant in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Socket addressing supports the abstract namespace (Linux).
- CAPABILITY_ANCILLARY_MESSAGES - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Socket supports sending and receiving ancillary messages.
- CAPABILITY_ANCILLARY_MESSAGES - Enum constant in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Socket supports sending and receiving ancillary messages.
- CAPABILITY_DATAGRAMS - Enum constant in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Support for AF_UNIX datagrams (not on Windows yet).
- CAPABILITY_FD_AS_REDIRECT - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
A file descriptor can be converted to
ProcessBuilder.Redirect. - CAPABILITY_FILE_DESCRIPTORS - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Socket supports passing file descriptors via ancillary messages.
- CAPABILITY_FILE_DESCRIPTORS - Enum constant in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Socket supports passing file descriptors via ancillary messages.
- CAPABILITY_NATIVE_SOCKETPAIR - Enum constant in enum 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 org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.A pair of interconnected sockets can be created natively.
- CAPABILITY_PEER_CREDENTIALS - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Socket supports retrieving peer credentials.
- CAPABILITY_PEER_CREDENTIALS - Enum constant in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Socket supports retrieving peer credentials.
- CAPABILITY_TIPC - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Support for AF_TIPC.
- CAPABILITY_UNIX_DATAGRAMS - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Support for AF_UNIX datagrams (not on Windows yet).
- CAPABILITY_UNIX_DOMAIN - Enum constant in enum org.newsclub.net.unix.AFSocketCapability
-
Support for AF_UNIX.
- 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 extends Closeable> - 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
Closeablesthat can be closed at once. - Closeables() - Constructor for class org.newsclub.net.unix.Closeables
-
Creates a new
Closeablesinstance. - Closeables(Closeable...) - Constructor for class org.newsclub.net.unix.Closeables
-
Creates a new
Closeablesinstance, populating it with the givenCloseableobjects. - 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)). - 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)orAFSocket.connect(SocketAddress, int)to be the given function. - connectTo(A) - Static method in class org.newsclub.net.unix.AFSocket
-
Creates a new
AFSocketand connects it to the givenAFSocketAddressusing 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
AFSocketand connects it to the givenAFSocketAddress. - 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
AFSocketand connects it to the givenAFUNIXSocketAddress. - connectTo(AFUNIXSocketAddress) - Method in class org.newsclub.net.unix.AFUNIXSocketFactory
- 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
DatagramChannelclass. - datagramSocketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
DatagramSocketclass. - datagramSocketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
DatagramSocketconstructor. - DEFAULT - Enum constant in enum 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.
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. - 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.FactoryArgfactory using the given socket path. - FactoryArg(String) - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.FactoryArg
-
Constructs a new
AFUNIXSocketFactory.FactoryArgfactory 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
-
Creates a
AFSocketFactory.FixedAddressSocketFactory. - forceBindAddress(SocketAddress) - Method in class org.newsclub.net.unix.AFServerSocket
-
Forces the address to be used for any subsequent call to
ServerSocket.bind(SocketAddress)to be the given one, regardless of what'll be passed toAFServerSocket.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
ServerSocketthat will always bind to the given address, regardless of any socket address used in a call tobind. - forceBindOn(AFUNIXSocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new, unbound AF_UNIX
ServerSocketthat will always bind to the given address, regardless of any socket address used in a call tobind. - 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
- 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. - getAncillaryDataSupport() - Method in class org.newsclub.net.unix.AFDatagramSocket
-
Returns the
AncillaryDataSupportinstance. - 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.AFSocketAddress
-
Returns the
Filecorresponding with this address, if possible. - getFile() - Method in class org.newsclub.net.unix.AFTIPCSocketAddress
- getFile() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
- 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
-1if it could not be retrieved. - getGids() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns all "gid" values (group IDs), or
nullif they could not be retrieved. - getHostname() - Method in class org.newsclub.net.unix.HostAndPort
-
Returns the hostname.
- 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.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.
- getLoadedLibrary() - Static method in class org.newsclub.net.unix.AFSocket
-
Returns an identifier of the loaded native library, or
nullif 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
- 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.AFSocket
- getLocalSocketAddress() - Method in class org.newsclub.net.unix.AFSocketChannel
- getLocalSocketAddress() - Method in interface org.newsclub.net.unix.AFSomeSocket
-
Returns the socket's local socket address, or
nullif 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.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
- 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
-1if it could not be retrieved. - getPort() - Method in class org.newsclub.net.unix.HostAndPort
-
Returns the port, or
-1for "no port specified". - 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 toInputStream.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
nullif unavailable/not connected, or if there was a problem retrieving it. - 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
SelectorProviderassociated with this address family, ornullif 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. - 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
- getUid() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the "uid" (user ID), or
-1if it could not be retrieved. - getUUID() - Method in class org.newsclub.net.unix.AFUNIXSocketCredentials
-
Returns the process' unique identifier, or
nullif no such identifier could be retrieved. - getVersion() - Static method in class org.newsclub.net.unix.AFSocket
-
Returns the version of the junixsocket library, as a string, for debugging purposes.
H
- 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.AFTIPCSocketAddress
- hasFilename() - Method in class org.newsclub.net.unix.AFUNIXSocketAddress
- 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
trueif 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
AFUNIXSocketAddressin the abstract namespace. - inAbstractNamespace(String, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Convenience method to create an
AFUNIXSocketAddressin the abstract namespace. - init(T[]) - Static method in class org.newsclub.net.unix.NamedInteger
-
Ensures that the
VALUESarray is configured correctly. - 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)). - 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
- 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 uponAbstractInterruptibleChannel.close(). - isDeleteOnClose() - Method in class org.newsclub.net.unix.AFDatagramSocket
-
Checks if this
AFDatagramSocket's bound filename should be removed uponAFDatagramSocket.close(). - isDeleteOnClose() - Method in class org.newsclub.net.unix.AFServerSocket
-
Checks if this
AFServerSocket's file should be removed uponAFServerSocket.close(). - isDeleteOnClose() - Method in class org.newsclub.net.unix.AFServerSocketChannel
-
Checks if this
AFServerSocketChannel's file should be removed uponAbstractInterruptibleChannel.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.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.
- isInetAddressSupported(InetAddress) - Method in class org.newsclub.net.unix.AFSocketFactory
-
Checks whether the given
InetAddressis 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. - 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
trueiffAFSockets are supported by the current Java VM. - isSupported() - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Returns
trueiffAFUNIXSockets are supported by the current Java VM. - isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Checks if an
InetAddresscan be unwrapped to anAFTIPCSocketAddress. - isSupportedAddress(InetAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Checks if an
InetAddresscan be unwrapped to anAFUNIXSocketAddress. - 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.AFTIPCSocketAddress
-
Checks if a
SocketAddresscan be unwrapped to anAFTIPCSocketAddress. - isSupportedAddress(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Checks if a
SocketAddresscan be unwrapped to anAFUNIXSocketAddress.
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
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.AFSocketImpl
M
- main(String[]) - Static method in class org.newsclub.net.unix.AFUNIXSocket
-
Very basic self-test function.
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
NamedIntegerinstance, without actually naming it. - NamedInteger(String, int) - Constructor for class org.newsclub.net.unix.NamedInteger
-
Creates a new
NamedIntegerinstance. - 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 extends NamedInteger> - Interface in org.newsclub.net.unix
-
Constructor for "undefined" values.
- NamedIntegerBitmask<T extends 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 extends NamedIntegerBitmask<T>> - Interface in org.newsclub.net.unix
-
Creates a new instance.
- newAFSocketAddress(int, byte[], 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
DatagramChannelthat 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
AFSocketChannelfor 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
- 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
InputStreamfor this socket. - newInstance() - Method in interface org.newsclub.net.unix.AFSocketChannel.AFSocketSupplier
-
Returns a new
AFSocketinstance. - newInstance() - Static method in class org.newsclub.net.unix.AFUNIXDatagramSocket
-
Returns a new
AFUNIXDatagramSocketinstance. - 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(String, int) - Method in interface org.newsclub.net.unix.NamedIntegerBitmask.Constructor
-
Creates a new instance.
- newInstance(FileDescriptor) - Method in interface org.newsclub.net.unix.AFServerSocket.Constructor
-
Creates a new
AFServerSocketinstance. - newInstance(FileDescriptor, AFSocketFactory<A>) - Method in interface org.newsclub.net.unix.AFSocket.Constructor
-
Constructs a new
AFSocketsubclass instance. - newInstance(AFDatagramSocket.Constructor<A>) - Static method in class org.newsclub.net.unix.AFDatagramSocket
-
Returns a new
AFDatagramSocketinstance. - 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. - newOutputStream() - Method in class org.newsclub.net.unix.AFSocketImpl
-
Creates a new
OutputStreamfor 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
ServerSocketChannelcompatible 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
DatagramSocketinstance. - newSocketChannel() - Method in class org.newsclub.net.unix.AFAddressFamily
-
Creates a new, unconnected, unbound
SocketChannelcompatible with this socket address. - newSocketInstance() - Method in class org.newsclub.net.unix.AFServerSocket
-
Returns a new
AFSocketinstance. - newSocketInstance() - Method in class org.newsclub.net.unix.AFUNIXServerSocket
-
Returns a new
AFSocketinstance. - 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.
O
- of(byte[]) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressthat 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
AFUNIXSocketAddressthat 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
AFUNIXSocketAddressthat 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
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given file, assigning the given port to it. - of(URI) - Static method in class org.newsclub.net.unix.AFSocketAddress
-
Tries to parse the given URI and return a corresponding
AFSocketAddressfor it. - of(URI) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressfor the given URI, if possible. - of(URI) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressfor 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
AFSocketAddressfor it. - of(URI, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressfor the given URI, if possible. - of(URI, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressfor the given URI, if possible. - of(Path) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressthat 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
AFUNIXSocketAddressthat points to the AF_UNIX socket specified by the given path, assigning the given port to it. - ofNewTempFile() - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressthat 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
AFUNIXSocketAddressthat points to a temporary, non-existent but accessible path in the file system, assigning the given port to it. - ofService(int, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat 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
AFTIPCSocketAddressthat refers to a given TIPC 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
AFTIPCSocketAddressthat refers to the topology service. - ofValue(int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress.Scope
-
Returns a
AFTIPCSocketAddress.Scopeinstance 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.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.
- openDatagramChannel() - Method in class org.newsclub.net.unix.AFSelectorProvider
- 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
- 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
- openPipe() - Method in class org.newsclub.net.unix.AFSelectorProvider
- openSelector() - Method in class org.newsclub.net.unix.AFSelectorProvider
- openServerSocketChannel() - Method in class org.newsclub.net.unix.AFSelectorProvider
- openServerSocketChannel() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
- 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 class org.newsclub.net.unix.AFSelectorProvider
- openSocketChannel() - Method in class org.newsclub.net.unix.AFUNIXSelectorProvider
- 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
- 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.
- 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
- 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.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
AFUNIXSocketCredentialsfor the currently active remote session, ornullif it was not possible to retrieve these credentials. - remove(Closeable) - Method in class org.newsclub.net.unix.Closeables
-
Removes the given closeable.
- removeCloseable(Closeable) - Method in class org.newsclub.net.unix.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
NamedIntegerBitmaskinstance given a flag value. - resolve(T[], T, NamedIntegerBitmask.Constructor<T>, T[]) - Static method in class org.newsclub.net.unix.NamedIntegerBitmask
-
Returns a
NamedIntegerBitmaskinstance 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
AFSocketAddressto an actualAFSocketAddressinstance, possibly reusing a cached instance.
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
ServerSocketChannelclass. - serverSocketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
ServerSocketclass. - serverSocketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
ServerSocketconstructor. - 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 uponAbstractInterruptibleChannel.close(). - setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFDatagramSocket
-
Enables/disables deleting this
AFDatagramSocket's bound filename uponAFDatagramSocket.close(). - setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocket
-
Enables/disables deleting this
AFServerSocket's file (or other resource type) uponAFServerSocket.close(). - setDeleteOnClose(boolean) - Method in class org.newsclub.net.unix.AFServerSocketChannel
-
Enables/disables deleting this
AFServerSocketChannel's file (or other resource type) uponAbstractInterruptibleChannel.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.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
- 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. - setTimeToLive(int) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
- setTTL(byte) - Method in class org.newsclub.net.unix.AFDatagramSocketImpl
- 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 org.newsclub.net.unix.AFSocketType
-
Datagram-oriented socket.
- SOCK_RDM - Enum constant in enum org.newsclub.net.unix.AFSocketType
-
Reliably-delivered datagram messages.
- SOCK_SEQPACKET - Enum constant in enum org.newsclub.net.unix.AFSocketType
-
Sequential packet socket.
- SOCK_STREAM - Enum constant in enum 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
AFSocketAddresstype supported by this socket. - socketAddressClass() - Method in class org.newsclub.net.unix.AFSocket
-
Returns the
AFSocketAddresstype 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
SocketChannelclass. - socketClass() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
Socketclass. - socketConstructor() - Method in class org.newsclub.net.unix.AFAddressFamilyConfig
-
Returns the implementation's
Socketconstructor. - source() - Method in class org.newsclub.net.unix.AFPipe
- supportedOptions() - Method in class org.newsclub.net.unix.AFDatagramChannel
- 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.SystemPropertysocket factory.
T
- 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.
- toSocatAddressString(AFSocketType, AFSocketProtocol) - Method in class org.newsclub.net.unix.AFSocketAddress
-
Returns a address string that can be used with
socat'sSOCKET-CONNECT,SOCKET-LISTEN,SOCKET-DATAGRAM, etc., address types, ornullif the address type is not natively supported by this platform. - 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.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.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.AFSocketAddress
-
Tries to create a URI based on this
AFSocketAddress. - 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.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 org.newsclub.net.unix.AFUNIXProtocolFamily
-
UNIX domain.
- unwrap(String, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressgiven a specialInetAddresshostname that encodes the byte sequence of an AF_TIPC socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(String, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressgiven a specialInetAddresshostname that encodes the byte sequence of an AF_UNIX socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(String, int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
-
Returns an
AFSocketAddressgiven a specialInetAddresshostname that encodes the byte sequence of an AF_UNIX etc. socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressgiven a specialInetAddressthat encodes the byte sequence of an AF_TIPC socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(InetAddress, int) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressgiven a specialInetAddressthat encodes the byte sequence of an AF_UNIX socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(InetAddress, int, AFAddressFamily<A>) - Static method in class org.newsclub.net.unix.AFSocketAddress
-
Returns an
AFSocketAddressgiven a specialInetAddressthat encodes the byte sequence of an AF_UNIX etc. socket address, like those returned byAFSocketAddress.wrapAddress(). - unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFTIPCSocketAddress
-
Returns an
AFTIPCSocketAddressgiven a genericSocketAddress. - unwrap(SocketAddress) - Static method in class org.newsclub.net.unix.AFUNIXSocketAddress
-
Returns an
AFUNIXSocketAddressgiven a genericSocketAddress. - URIScheme() - Constructor for class org.newsclub.net.unix.AFUNIXSocketFactory.URIScheme
-
Creates a
AFUNIXSocketFactory.URISchemesocket 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
parseURI(URI,int). - using(FileDescriptor) - Static method in class org.newsclub.net.unix.FileDescriptorCast
-
Creates a
FileDescriptorCastusing 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 org.newsclub.net.unix.AFSocketCapability
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.newsclub.net.unix.AFSocketProtocol
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.newsclub.net.unix.AFSocketType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.newsclub.net.unix.AFUNIXProtocolFamily
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.newsclub.net.unix.AFSocketCapability
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.newsclub.net.unix.AFSocketProtocol
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.newsclub.net.unix.AFSocketType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.newsclub.net.unix.AFUNIXProtocolFamily
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.newsclub.net.unix.AFUNIXSocketCapability
-
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
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"
InetAddressthat contains information about thisAFSocketAddress. - 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.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form