Uses of Class
org.newsclub.net.unix.AFSocketAddress
-
Uses of AFSocketAddress in org.newsclub.net.unix
Modifier and TypeClassDescriptionfinal class
AFAddressFamily<A extends AFSocketAddress>
Describes an address family supported by junixsocket.class
AFAddressFamilyConfig<A extends AFSocketAddress>
The implementation-specifics for a given address family implementation.class
AFDatagramChannel<A extends AFSocketAddress>
ADatagramChannel
implementation that works with junixsocket.class
AFDatagramSocket<A extends AFSocketAddress>
ADatagramSocket
implementation that works with junixsocket.static interface
AFDatagramSocket.Constructor<A extends AFSocketAddress>
A reference to the constructor of anAFDatagramSocket
subclass.class
AFDatagramSocketImpl<A extends AFSocketAddress>
ADatagramSocketImpl
implemented by junixsocket.class
AFSelectorProvider<A extends AFSocketAddress>
Service-provider class for junixsocket selectors and selectable channels.class
AFServerSocket<A extends AFSocketAddress>
The server part of a junixsocket socket.static interface
AFServerSocket.Constructor<A extends AFSocketAddress>
The constructor of the concrete subclass.class
AFServerSocketChannel<A extends AFSocketAddress>
A selectable channel for stream-oriented listening sockets.interface
AFServerSocketConnector<A extends AFSocketAddress,
T extends AFSocketAddress> Some connector that is able to createAFServerSocket
s bound to a givenAFSocketAddress
.interface
AFServerSocketConnector<A extends AFSocketAddress,
T extends AFSocketAddress> Some connector that is able to createAFServerSocket
s bound to a givenAFSocketAddress
.class
AFSocket<A extends AFSocketAddress>
junixsocket's base implementation of aSocket
.static interface
AFSocket.Constructor<A extends AFSocketAddress>
The reference to the constructor of anAFSocket
subclass.protected static interface
A reference to the constructor of an AFSocketAddress subclass.class
AFSocketAddressConfig<A extends AFSocketAddress>
The implementation-specifics for a givenAFSocketAddress
subclass implementation.interface
AFSocketAddressFromHostname<A extends AFSocketAddress>
Helps converting an internet "hostname" to anAFSocketAddress
.class
AFSocketChannel<A extends AFSocketAddress>
A selectable channel for stream-oriented connecting sockets.protected static interface
AFSocketChannel.AFSocketSupplier<A extends AFSocketAddress>
A reference to a method that provides anAFSocket
instance.interface
AFSocketConnector<A extends AFSocketAddress,
T extends AFSocketAddress> Some connector that is able to connect to a givenAFSocketAddress
.interface
AFSocketConnector<A extends AFSocketAddress,
T extends AFSocketAddress> Some connector that is able to connect to a givenAFSocketAddress
.class
AFSocketFactory<A extends AFSocketAddress>
The base for a SocketFactory that connects to UNIX sockets.class
AFSocketImpl<A extends AFSocketAddress>
junixsocket-basedSocketImpl
.interface
AFSocketImplExtensions<A extends AFSocketAddress>
Placeholder for protocol-specific code that resides in the native library.Modifier and TypeClassDescriptionfinal class
AnAFSocketAddress
for unknown socket types.final class
AnAFSocketAddress
for AF_SYSTEM sockets.final class
AnAFSocketAddress
for TIPC sockets.final class
Describes anInetSocketAddress
that actually uses AF_UNIX sockets instead of AF_INET.final class
AnAFSocketAddress
for VSOCK sockets.Modifier and TypeMethodDescriptionprotected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.bindOn
(AFServerSocket.Constructor<A> instanceSupplier, A addr, boolean deleteOnClose) Returns a newServerSocket
that is bound to the givenAFSocketAddress
.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.bindOn
(AFServerSocket.Constructor<A> instanceSupplier, AFSocketAddress addr) Returns a newServerSocket
that is bound to the givenAFSocketAddress
.static final <A extends AFSocketAddress>
AFSocket<?> AFSocket.connectTo
(@NonNull A addr) Creates a newAFSocket
and connects it to the givenAFSocketAddress
using the default implementation suited for that address type.protected static final <A extends AFSocketAddress>
@NonNull AFSocket<A> AFSocket.connectTo
(AFSocket.Constructor<A> constr, A addr) Creates a newAFSocket
and connects it to the givenAFSocketAddress
.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.forceBindOn
(AFServerSocket.Constructor<A> instanceSupplier, A forceAddr) Returns a new, unboundServerSocket
that will always bind to the given address, regardless of any socket address used in a call tobind
.protected static final <A extends AFSocketAddress>
@Nullable AAFSocketAddress.getSocketAddress
(FileDescriptor fdesc, boolean requestPeerName, int port, AFAddressFamily<A> af) Gets the socket name/peer name of a file descriptor as anAFSocketAddress
.static <A extends AFSocketAddress>
AAFSocketAddress.mapOrFail
(SocketAddress addr, Class<A> targetAddressClass) Maps the given address to a specificAFSocketAddress
type.protected static <A extends AFSocketAddress>
AAFSocketAddress.newDeserializedAFSocketAddress
(int port, byte[] socketAddress, org.newsclub.net.unix.pool.ObjectPool.Lease<ByteBuffer> nativeAddress, AFAddressFamily<A> af, AFSocketAddress.AFSocketAddressConstructor<A> constructor) Returns a newAFSocketAddress
instance via deserialization.protected static final <A extends AFSocketAddress>
AFDatagramSocket<A> AFDatagramSocket.newInstance
(AFDatagramSocket.Constructor<A> constructor) Returns a newAFDatagramSocket
instance.protected static final <A extends AFSocketAddress>
AFDatagramSocket<A> AFDatagramSocket.newInstance
(AFDatagramSocket.Constructor<A> constructor, FileDescriptor fdObj, int localPort, int remotePort) Creates a newAFDatagramSocket
.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.newInstance
(AFServerSocket.Constructor<A> instanceSupplier) Creates a new AFServerSocket instance, using the given subclass constructor.protected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.newInstance
(AFServerSocket.Constructor<A> instanceSupplier, FileDescriptor fdObj, int localPort, int remotePort) Creates a new AFServerSocket instance, using the given subclass constructor.protected static final <A extends AFSocketAddress>
AFSocket<A> AFSocket.newInstance
(AFSocket.Constructor<A> constr, AFSocketFactory<A> factory) Creates a new, unboundAFSocket
.protected static final <A extends AFSocketAddress>
AFSocketChannel<A> AFSocketChannel.open
(AFSocketChannel.AFSocketSupplier<A> supplier) Opens a socket channel.protected static final <A extends AFSocketAddress>
AFSocketChannel<A> AFSocketChannel.open
(AFSocketChannel.AFSocketSupplier<A> supplier, SocketAddress remote) Opens a socket channel, connecting to the given socket address.static <A extends AFSocketAddress>
AFAddressFamily<A> AFAddressFamily.registerAddressFamily
(String juxString, Class<A> addressClass, AFSocketAddressConfig<A> config) Registers an address family.static <A extends AFSocketAddress>
AFAddressFamily<A> AFAddressFamily.registerAddressFamilyImpl
(String juxString, AFAddressFamily<A> addressFamily, AFAddressFamilyConfig<A> config) Registers an implementation.protected static final <A extends AFSocketAddress>
AAFSocketAddress.resolveAddress
(byte[] socketAddress, int port, AFAddressFamily<A> af) Resolves a junixsocket-specific byte-array representation of anAFSocketAddress
to an actualAFSocketAddress
instance, possibly reusing a cached instance.protected static final <A extends AFSocketAddress>
@NonNull AAFSocketAddress.unwrap
(String hostname, int port, AFAddressFamily<A> af) Returns anAFSocketAddress
given a specialInetAddress
hostname that encodes the byte sequence of an AF_UNIX etc. socket address, like those returned bywrapAddress()
.protected static final <A extends AFSocketAddress>
@NonNull AAFSocketAddress.unwrap
(InetAddress address, int port, AFAddressFamily<A> af) Returns anAFSocketAddress
given a specialInetAddress
that encodes the byte sequence of an AF_UNIX etc. socket address, like those returned bywrapAddress()
.Modifier and TypeMethodDescriptionstatic AFSocketAddress
AFSocketAddress.mapOrFail
(SocketAddress addr) Maps the given address to anAFSocketAddress
.static AFSocketAddress
Tries to parse the given URI and return a correspondingAFSocketAddress
for it.static AFSocketAddress
Tries to parse the given URI and return a correspondingAFSocketAddress
for it.Modifier and TypeMethodDescriptionprotected final Class
<? extends AFSocketAddress> AFDatagramSocket.socketAddressClass()
Returns theAFSocketAddress
type supported by this socket.protected final Class
<? extends AFSocketAddress> AFSocket.socketAddressClass()
Returns theAFSocketAddress
type supported by this socket.Modifier and TypeMethodDescriptionprotected static <A extends AFSocketAddress>
AFServerSocket<A> AFServerSocket.bindOn
(AFServerSocket.Constructor<A> instanceSupplier, AFSocketAddress addr) Returns a newServerSocket
that is bound to the givenAFSocketAddress
.protected Socket
AFSocketFactory.FixedAddressSocketFactory.connectTo
(AFSocketAddress addr) boolean
AFSocketAddress.covers
(AFSocketAddress other) Checks if the given address could cover another address.boolean
AFVSOCKSocketAddress.covers
(AFSocketAddress covered) Checks if the given address could cover another address.Modifier and TypeMethodDescriptionstatic boolean
AFSocketAddress.canMap
(SocketAddress addr, Class<? extends AFSocketAddress> targetAddressClass) Checks if the givenSocketAddress
can be mapped to a specificAFSocketAddress
subclass.ModifierConstructorDescriptionprotected
AFSocketFactory
(Class<? extends AFSocketAddress> socketAddressClass) Creates a new socket factory instance.