Uses of Class
org.newsclub.net.unix.AFVSOCKSocketAddress
Package
Description
The junixsocket base implementation, including support for AF_UNIX sockets.
The junixsocket implementation for AF_VSOCK sockets.
-
Uses of AFVSOCKSocketAddress in org.newsclub.net.unix
Modifier and TypeMethodDescriptionstatic AFVSOCKSocketAddress
Returns anAFVSOCKSocketAddress
for the given URI, if possible.static AFVSOCKSocketAddress
Returns anAFVSOCKSocketAddress
for the given URI, if possible.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofAnyHostPort()
Returns anAFVSOCKSocketAddress
, especially useful for binding, that refers to "any" port on the host; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofAnyHypervisorPort()
Returns anAFVSOCKSocketAddress
, especially useful for binding, that refers to "any" port on the hypervisor; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofAnyLocalPort()
Returns anAFVSOCKSocketAddress
, especially useful for binding, that refers to "any" port with the local/loopback CID; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofAnyPort()
Returns anAFVSOCKSocketAddress
, especially useful for binding, that refers to "any" port and CID; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofHostPort
(int port) Returns anAFVSOCKSocketAddress
that refers to a given VSOCK port on the host; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofHypervisorPort
(int port) Returns anAFVSOCKSocketAddress
that refers to a given VSOCK port on the hypervisor; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofLocalPort
(int port) Returns anAFVSOCKSocketAddress
that refers to the given port with the local/loopback CID; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofPortAndCID
(int port, int cid) Returns anAFVSOCKSocketAddress
that refers to a given VSOCK port and CID; the "java port" is set to -1.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofPortAndCID
(int javaPort, int vsockPort, int cid) Returns anAFVSOCKSocketAddress
that refers to a given port and CID.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.ofPortWithAnyCID
(int port) Returns anAFVSOCKSocketAddress
, especially useful for binding, that refers to the given port with "any CID"; the "java port" is set to -1.static AFVSOCKSocketAddress
Returns anAFVSOCKSocketAddress
given a specialInetAddress
hostname that encodes the byte sequence of an AF_VSOCK socket address, like those returned byAFSocketAddress.wrapAddress()
.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.unwrap
(InetAddress address, int port) Returns anAFVSOCKSocketAddress
given a specialInetAddress
that encodes the byte sequence of an AF_VSOCK socket address, like those returned byAFSocketAddress.wrapAddress()
.static AFVSOCKSocketAddress
AFVSOCKSocketAddress.unwrap
(SocketAddress address) Returns anAFVSOCKSocketAddress
given a genericSocketAddress
.Modifier and TypeMethodDescriptionstatic AFAddressFamily
<AFVSOCKSocketAddress> AFVSOCKSocketAddress.addressFamily()
Returns the correspondingAFAddressFamily
. -
Uses of AFVSOCKSocketAddress in org.newsclub.net.unix.vsock
Modifier and TypeMethodDescriptionAFVSOCKSocketFactory.FixedAddress.addressFromHost
(String host, int javaPort) Modifier and TypeMethodDescriptionprotected AFAddressFamily
<@NonNull AFVSOCKSocketAddress> AFVSOCKSelectorProvider.addressFamily()
protected AFServerSocketChannel
<AFVSOCKSocketAddress> AFVSOCKServerSocket.newChannel()
protected AFDatagramSocket
<AFVSOCKSocketAddress> AFVSOCKDatagramSocket.newDatagramSocketInstance()
protected AFSocketImpl
<AFVSOCKSocketAddress> AFVSOCKServerSocket.newImpl
(FileDescriptor fdObj) protected AFSocket
<AFVSOCKSocketAddress> AFVSOCKServerSocket.newSocketInstance()
AFVSOCKProxyServerSocketConnector.openDirectConnector()
Returns an instance that is configured to connect directly to the given address.AFVSOCKProxySocketConnector.openDirectConnector()
Returns an instance that is configured to connect directly to the given address.AFVSOCKProxyServerSocketConnector.openFirecrackerStyleConnector
(File listenAddressPrefix, int allowedCID) Returns an instance that is configured to support [Firecracker-style](https://github.com/firecracker-microvm/firecracker/blob/main/docs/vsock.md) Unix domain sockets.AFVSOCKProxySocketConnector.openFirecrackerStyleConnector
(AFUNIXSocketAddress connectorAddress, int allowedCID) Returns an instance that is configured to support [Firecracker-style](https://github.com/firecracker-microvm/firecracker/blob/main/docs/vsock.md) Unix domain sockets.Modifier and TypeMethodDescriptionAFVSOCKProxyServerSocketConnector.bind
(AFVSOCKSocketAddress addr) static AFVSOCKServerSocket
AFVSOCKServerSocket.bindOn
(AFVSOCKSocketAddress addr) Returns a new AF_VSOCKServerSocket
that is bound to the givenAFVSOCKSocketAddress
.static AFVSOCKServerSocket
AFVSOCKServerSocket.bindOn
(AFVSOCKSocketAddress addr, boolean deleteOnClose) Returns a new AF_VSOCKServerSocket
that is bound to the givenAFSocketAddress
.AFSocket
<?> AFVSOCKProxySocketConnector.connect
(AFVSOCKSocketAddress vsockAddress) Connects to the given AF_VSOCK address.static AFVSOCKSocket
AFVSOCKSocket.connectTo
(AFVSOCKSocketAddress addr) Creates a newAFSocket
and connects it to the givenAFVSOCKSocketAddress
.protected final AFVSOCKSocket
AFVSOCKSocketFactory.connectTo
(AFVSOCKSocketAddress addr) static AFVSOCKServerSocket
AFVSOCKServerSocket.forceBindOn
(AFVSOCKSocketAddress forceAddr) Returns a new, unbound AF_VSOCKServerSocket
that will always bind to the given address, regardless of any socket address used in a call tobind
.ModifierConstructorDescriptionCreates anAFVSOCKSocketFactory
that always uses the given VSOCK address.