AFSocketAddress for VSOCK sockets.
| Modifier and Type | Field and Description |
|---|---|
| private static AFAddressFamily | |
| private static final Pattern | |
| private static final long | |
| public static final int | VMADDR_CID_ANY
"Any address for binding". |
| public static final int | VMADDR_CID_HOST
The well-known address of the host. |
| public static final int | VMADDR_CID_HYPERVISOR
Reserved for services built into the hypervisor. |
| public static final int | VMADDR_CID_LOCAL
The well-known address for local communication (loopback). |
| public static final int | VMADDR_PORT_ANY
Any port number for binding. |
| Access | Constructor and Description |
|---|---|
| private | AFVSOCKSocketAddress(int port, final byte[] socketAddress, ObjectPool.
|
| Modifier and Type | Method and Description |
|---|---|
| public static synchronized AFAddressFamily | |
| public boolean | Returns: true if the other address could be covered.The other address that could be covered by this address. covered)Overrides org. Checks if the given address could cover another address. |
| public File | getFile()
Implements abstract org. Returns the |
| public int | |
| public int | |
| public int | Returns: The "reserved1" identifier, which should be 0.Returns the "VSOCK reserved1" part of this address. |
| public boolean | hasFilename()
Implements abstract org. Checks if the address can be resolved to a |
| public static boolean | Returns: true if so.The instance to check. addr)Checks if an |
| public static boolean | Returns: true if so.The instance to check. addr)Checks if a |
| private static AFVSOCKSocketAddress | newAFSocketAddress(int port, final byte[] socketAddress, ObjectPool.
|
| public static AFVSOCKSocketAddress | Returns: The address.The URI. uri)Hides org. Returns an |
| public static AFVSOCKSocketAddress | Returns: The address.The URI. uri, int The port to forcibly use, or overridePort)-1 for "don't override".Hides org. Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The VSOCK port port)Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The VSOCK port port)Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The VSOCK port. port)Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The VSOCK port port, int The CID. cid)Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The Java port number. javaPort, int The vsock port. vsockPort, int The CID. cid)Returns an |
| public static AFVSOCKSocketAddress | Returns: A correspondingAFVSOCKSocketAddress instance.The VSOCK port. port)Returns an |
| private static int | |
| private static byte[] | |
| public String | toString()
Overrides java. Constructs a string representation of this InetSocketAddress. |
| public URI | toURI(String
The target scheme. scheme, URI An optional template to reuse certain parameters (e.g., the "path" component
for an template)http request), or null.Overrides org. Tries to create a URI based on this |
| public static AFVSOCKSocketAddress | Returns: TheAFVSOCKSocketAddress instance.The "special" address, int InetAddress.The port (use 0 for "none"). port)Returns an |
| public static AFVSOCKSocketAddress | Returns: TheAFVSOCKSocketAddress instance.The "special" hostname, as provided by hostname, int InetAddress#getHostName().The port (use 0 for "none"). port)Returns an |
| public static AFVSOCKSocketAddress | Returns: TheAFVSOCKSocketAddress instance.The address to unwrap. address)Returns an |
| afVsock | back to summary |
|---|---|
| private static AFAddressFamily<AFVSOCKSocketAddress> afVsock | |
| PAT_VSOCK_URI_HOST_AND_PORT | back to summary |
|---|---|
| private static final Pattern PAT_VSOCK_URI_HOST_AND_PORT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| VMADDR_CID_ANY | back to summary |
|---|---|
| public static final int VMADDR_CID_ANY "Any address for binding". | |
| VMADDR_CID_HOST | back to summary |
|---|---|
| public static final int VMADDR_CID_HOST The well-known address of the host. | |
| VMADDR_CID_HYPERVISOR | back to summary |
|---|---|
| public static final int VMADDR_CID_HYPERVISOR Reserved for services built into the hypervisor. | |
| VMADDR_CID_LOCAL | back to summary |
|---|---|
| public static final int VMADDR_CID_LOCAL The well-known address for local communication (loopback). | |
| VMADDR_PORT_ANY | back to summary |
|---|---|
| public static final int VMADDR_PORT_ANY Any port number for binding. | |
| AFVSOCKSocketAddress | back to summary |
|---|---|
| private AFVSOCKSocketAddress(int port, final byte[] socketAddress, ObjectPool. | |
| addressFamily | back to summary |
|---|---|
| public static synchronized AFAddressFamily Returns the corresponding
| |
| covers | back to summary |
|---|---|
| public boolean covers(AFSocketAddress covered) Overrides org. Checks if the given address could cover another address.
By default, this is only true if both addresses are regarded equal using
| |
| getFile | back to summary |
|---|---|
| public File getFile() throws FileNotFoundException Implements abstract org. Doc from org. Returns the
| |
| getVSOCKCID | back to summary |
|---|---|
| public int getVSOCKCID() Returns the "VSOCK CID" part of this address.
| |
| getVSOCKPort | back to summary |
|---|---|
| public int getVSOCKPort() Returns the "VSOCK port" part of this address.
| |
| getVSOCKReserved1 | back to summary |
|---|---|
| public int getVSOCKReserved1() Returns the "VSOCK reserved1" part of this address.
| |
| hasFilename | back to summary |
|---|---|
| public boolean hasFilename() Implements abstract org. Doc from org. Checks if the address can be resolved to a
| |
| isSupportedAddress | back to summary |
|---|---|
| public static boolean isSupportedAddress(InetAddress addr) Checks if an
| |
| isSupportedAddress | back to summary |
|---|---|
| public static boolean isSupportedAddress(SocketAddress addr) Checks if a
| |
| newAFSocketAddress | back to summary |
|---|---|
| private static AFVSOCKSocketAddress newAFSocketAddress(int port, final byte[] socketAddress, ObjectPool. | |
| of | back to summary |
|---|---|
| public static AFVSOCKSocketAddress of(URI uri) throws SocketException Hides org. Returns an
| |
| of | back to summary |
|---|---|
| public static AFVSOCKSocketAddress of(URI uri, int overridePort) throws SocketException Hides org. Returns an
| |
| ofAnyHostPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofAnyHostPort() throws SocketException Returns an
| |
| ofAnyHypervisorPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofAnyHypervisorPort() throws SocketException Returns an
| |
| ofAnyLocalPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofAnyLocalPort() throws SocketException Returns an
| |
| ofAnyPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofAnyPort() throws SocketException Returns an
| |
| ofHostPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofHostPort(int port) throws SocketException Returns an
| |
| ofHypervisorPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofHypervisorPort(int port) throws SocketException Returns an
| |
| ofLocalPort | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofLocalPort(int port) throws SocketException Returns an
| |
| ofPortAndCID | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofPortAndCID(int port, int cid) throws SocketException Returns an
| |
| ofPortAndCID | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofPortAndCID(int javaPort, int vsockPort, int cid) throws SocketException Returns an
| |
| ofPortWithAnyCID | back to summary |
|---|---|
| public static AFVSOCKSocketAddress ofPortWithAnyCID(int port) throws SocketException Returns an
| |
| parseInt | back to summary |
|---|---|
| private static int parseInt(String v) | |
| toBytes | back to summary |
|---|---|
private static byte[] toBytes(int port, int cid)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Constructs a string representation of this InetSocketAddress.
This string is constructed by calling
If the address is an IPv6 address, the IPv6 literal is enclosed in
square brackets, for example:
To retrieve a string representation of the hostname or the address, use
| |
| toURI | back to summary |
|---|---|
| public URI toURI(String scheme, URI template) throws IOException Overrides org. Doc from org. Tries to create a URI based on this
| |
| unwrap | back to summary |
|---|---|
| public static AFVSOCKSocketAddress unwrap(InetAddress address, int port) throws SocketException Returns an
| |
| unwrap | back to summary |
|---|---|
| public static AFVSOCKSocketAddress unwrap(String hostname, int port) throws SocketException Returns an
| |
| unwrap | back to summary |
|---|---|
| public static AFVSOCKSocketAddress unwrap(SocketAddress address) throws SocketException Returns an
| |