Class AFVSOCKSocketFactory.FixedAddress

java.lang.Object
javax.net.SocketFactory
org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFVSOCKSocketAddress>
org.newsclub.net.unix.vsock.AFVSOCKSocketFactory
org.newsclub.net.unix.vsock.AFVSOCKSocketFactory.FixedAddress
All Implemented Interfaces:
org.newsclub.net.unix.AFSocketAddressFromHostname<org.newsclub.net.unix.AFVSOCKSocketAddress>
Enclosing class:
AFVSOCKSocketFactory

public static class AFVSOCKSocketFactory.FixedAddress extends AFVSOCKSocketFactory
Always connects sockets to the given VSOCK type and instance.
Author:
Christian Kohlschütter
  • Constructor Details

    • FixedAddress

      public FixedAddress(int port, int cid) throws SocketException
      Creates an AFVSOCKSocketFactory that always uses the given VSOCK address.
      Parameters:
      port - The VSOCK port.
      cid - The VSOCK CID.
      Throws:
      SocketException - on internal error.
    • FixedAddress

      public FixedAddress(org.newsclub.net.unix.AFVSOCKSocketAddress addr)
      Creates an AFVSOCKSocketFactory that always uses the given VSOCK address.
      Parameters:
      addr - The address.
  • Method Details