Class InetAddressHostInfo

    • Constructor Detail

      • InetAddressHostInfo

        public InetAddressHostInfo()
                            throws SocketException
        Throws:
        SocketException - where an error occurs identifying the host address
      • InetAddressHostInfo

        public InetAddressHostInfo​(InetAddress address)
        Parameters:
        address - a host address
    • Method Detail

      • getHostName

        public String getHostName()
        Specified by:
        getHostName in interface HostInfo
        Returns:
        a name for the host machine