SocketAddress that is supported by junixsocket, such as AFUNIXSocketAddress.
| Modifier and Type | Class and Description |
|---|---|
| protected static interface | AFSocketAddress.
The actual subclass. T extends AFSocketAddress>A reference to the constructor of an AFSocketAddress subclass. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private transient AFAddressFamily | addressFamily
The address family. |
| private byte[] | bytes
Some byte-level representation of this address, which can only be converted to a native representation in combination with the domain ID. |
| private InetAddress | inetAddress
An |
| pack-priv static final AFSocketAddress | INTERNAL_DUMMY_BIND
Just a marker for "don't actually bind" (checked with "=="). |
| pack-priv static final AFSocketAddress | |
| pack-priv static final AFSocketAddress | |
| private transient ByteBuffer | nativeAddress
The system-native representation of this address, or |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final ObjectPool | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| protected | AFSocketAddress(int
The port. port, final byte[] The socket address in junixsocket-specific byte-array representation. socketAddress, ObjectPool.The socket address in system-native representation. nativeAddress,The address family. af)Creates a new socket address. |
| pack-priv | AFSocketAddress(Class<SentinelSocketAddress>
The clazz, int SentinelSocketAddress class.A sentinel port number. port)Only for |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if mappable.The address. addr)Checks if the given |
| public static boolean | Returns: true if mappable.The address. addr, Class<? extends AFSocketAddress> The target address class to map to. targetAddressClass)Checks if the given |
| public boolean | Returns: true if the other address could be covered.The other address that could be covered by this address. other)Checks if the given address could cover another address. |
| private static byte[] | Returns: The byte representation.The actual subclass. className, String The hostname to use (must not be empty or null). hostname, int The port to use. port)Creates a byte-representation of a serialized |
| public final AFAddressFamily | |
| protected final byte[] | Returns: The byte array.Returns the (non-native) byte-level representation of this address. |
| public abstract File | |
| protected static final InetAddress | Returns: TheInetAddress.The file descriptor. fdesc, boolean If peerName, AFAddressFamily<?> true, the remote peer name (instead of the local name) is retrieved.The address family. af)Wraps the socket name/peer name of a file descriptor as an |
| protected final synchronized InetAddress | Returns: TheInetAddress.The address family. af)Wraps an address as an |
| protected final InetAddress | |
| pack-priv final ObjectPool. | Returns: The directByteBuffer.Returns a thread-local direct ByteBuffer containing the native socket address representation of
this |
| pack-priv static final ObjectPool. | |
| protected static final < The corresponding address type. A extends AFSocketAddress> @Nullable A | Returns: TheInetAddress.The file descriptor. fdesc, boolean If requestPeerName, int true, the remote peer name (instead of the local name) is
retrieved.The port. port, AFAddressFamily<A> The address family. af)Gets the socket name/peer name of a file descriptor as an |
| public abstract boolean | Returns: true if the address has a filename.Checks if the address can be resolved to a |
| private static void | initAFSocketAddress(AFSocketAddress addr, int port, final byte[] socketAddress, ObjectPool.
|
| protected static final boolean | Returns: true if supported.The address. addr, AFAddressFamily<?> The address family. af)Checks if the given address is supported by this address family. |
| protected static boolean | Returns: true if so.Checks if |
| public static AFSocketAddress | Returns: TheAFSocketAddress.The address. addr)Maps the given address to an |
| public static < The target address type. A extends AFSocketAddress> A | Returns: TheAFSocketAddress.The address. addr, Class<A> The target address class. targetAddressClass)Maps the given address to a specific |
| public AFServerSocket | Returns: The server socket instance.Creates a new server socket bound to this address. |
| public AFSocket | |
| protected static < The subclass (must be a direct subclass of A extends AFSocketAddress> AAFSocketAddress). | Returns: The new instance.The port to use. port, final byte[] The junixsocket representation of the socket address. socketAddress, ObjectPool.The system-native representation of the socket address, or nativeAddress,null.The address family, corresponding to the subclass af, AFSocketAddress.The constructor to use as fallback constructorReturns a new |
| public AFServerSocket | Returns: The server socket instance.Creates a new server socket force-bound to this address (i.e., any additional call to
|
| pack-priv static final @NonNull ByteBuffer | |
| pack-priv static final @NonNull ByteBuffer | |
| public static AFSocketAddress | Returns: The address.The URI. u)Tries to parse the given URI and return a corresponding |
| public static AFSocketAddress | Returns: The address.The URI. u, int The port to forcibly use, or overridePort)-1 for "don't override".Tries to parse the given URI and return a corresponding |
| pack-priv static final <A extends AFSocketAddress> A | |
| protected static int | Returns: The integer.The string. s, int The radix. radix)Parses the string argument as an unsigned integer in the radix specified by the second argument. |
| pack-priv static final AFSocketAddress | preprocessSocketAddress(Class<? extends AFSocketAddress> supportedAddressClass, SocketAddress endpoint, AFSocketAddressFromHostname<?> afh)
|
| private static void | |
| private static void | |
| private void | readObject(ObjectInputStream
The in)ObjectInputStream.Hides java. Custom serialization: Reference |
| protected static final < The concrete A extends AFSocketAddress> AAFSocketAddress that is supported by this type. | Returns: The instance.The socket address in junixsocket-specific byte-array representation. socketAddress, int The port. port, AFAddressFamily<A> The address family. af)Resolves a junixsocket-specific byte-array representation of an |
| public @Nullable String | Returns: The string (such as 1:0:x2f746d702f796f).The socket type, or socketType, AFSocketProtocol null to omit from string.The socket protocol, or socketProtocol)null to omit from string.Returns a address string that can be used with |
| private static long | |
| pack-priv static String | Returns: The string.The value. i)Returns a string representation of the argument as an unsigned decimal value. |
| pack-priv static String | Returns: The string.The value. i, int The radix. radix)Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument; added to allow execution on Java 1.7. |
| public URI | Returns: The URI.The target scheme. scheme, URI An optional template to reuse certain parameters (e.g., the "path" component
for an template)http request), or null.Tries to create a URI based on this |
| protected static final < The corresponding address type. A extends AFSocketAddress> @NonNull A | Returns: TheAFSocketAddress instance.The "special" address, int InetAddress.The port (use 0 for "none"). port, AFAddressFamily<A> The address family. af)Returns an |
| protected static final < The corresponding address type. A extends AFSocketAddress> @NonNull A | Returns: TheAFSocketAddress instance.The "special" hostname, as provided by hostname, int InetAddress#getHostName().The port (use 0 for "none"). port, AFAddressFamily<A> The address family. af)Returns an |
| pack-priv static final int | |
| public final InetAddress | Returns: The "special"InetAddress.Returns a "special" |
| public final void | writeNativeAddressTo(ByteBuffer
The target buffer. buf)Writes the native (system-level) representation of this address to the given buffer. |
| private void | writeObject(ObjectOutputStream
The out)ObjectOutputStream.Hides java. Custom serialization: Reference |