Uses of Class
org.newsclub.net.unix.AFAddressFamily
-
Uses of AFAddressFamily in org.newsclub.net.unix
Modifier and TypeMethodDescriptionprotected final AFAddressFamily
<A> AFDatagramSocket.addressFamily()
Returns the address family supported by this implementation.AFGenericSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
.protected abstract AFAddressFamily
<@NonNull A> AFSelectorProvider.addressFamily()
Returns the address family supported by this implementation.protected final AFAddressFamily
<A> AFServerSocket.addressFamily()
Returns the address family supported by this implementation.static AFAddressFamily
<AFSYSTEMSocketAddress> AFSYSTEMSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
.static AFAddressFamily
<AFTIPCSocketAddress> AFTIPCSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
.protected AFAddressFamily
<@NonNull AFUNIXSocketAddress> AFUNIXSelectorProvider.addressFamily()
static AFAddressFamily
<AFUNIXSocketAddress> AFUNIXSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
.static AFAddressFamily
<AFVSOCKSocketAddress> AFVSOCKSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
.protected final AFAddressFamily
<@NonNull A> AFDatagramSocketImpl.getAddressFamily()
Returns the address family supported by this implementation.final AFAddressFamily
<?> AFSocketAddress.getAddressFamily()
Returns the correspondingAFAddressFamily
.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.Modifier and TypeMethodDescriptionprotected static final InetAddress
AFSocketAddress.getInetAddress
(FileDescriptor fdesc, boolean peerName, AFAddressFamily<?> af) Wraps the socket name/peer name of a file descriptor as anInetAddress
.protected final InetAddress
AFSocketAddress.getInetAddress
(AFAddressFamily<?> af) Wraps an address as anInetAddress
.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
.protected static final boolean
AFSocketAddress.isSupportedAddress
(InetAddress addr, AFAddressFamily<?> af) Checks if the given address is supported by this address family.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.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 byAFSocketAddress.wrapAddress()
.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 byAFSocketAddress.wrapAddress()
.ModifierConstructorDescriptionprotected
AFDatagramSocketImpl
(AFAddressFamily<@NonNull A> addressFamily, FileDescriptor fd, AFSocketType socketType) Constructs a newAFDatagramSocketImpl
using the givenFileDescriptor
(or null to create a new one).protected
AFSocketAddress
(int port, byte[] socketAddress, org.newsclub.net.unix.pool.ObjectPool.Lease<ByteBuffer> nativeAddress, AFAddressFamily<?> af) Creates a new socket address.protected
AFSocketImpl
(AFAddressFamily<@NonNull A> addressFamily, FileDescriptor fdObj) Creates a newAFSocketImpl
instance.