javax.jmdns.impl
Class HostInfo

java.lang.Object
  extended by javax.jmdns.impl.HostInfo

public class HostInfo
extends java.lang.Object

HostInfo information on the local host to be able to cope with change of addresses.


Field Summary
protected  java.net.InetAddress _address
           
protected  java.net.NetworkInterface _interfaze
           
protected  java.lang.String _name
           
 
Constructor Summary
HostInfo(java.net.InetAddress address, java.lang.String name)
           
 
Method Summary
 void addAddressRecords(DNSOutgoing out, boolean authoritative)
           
 java.net.InetAddress getAddress()
           
 DNSRecord.Address getDNS4AddressRecord()
           
 DNSRecord.Address getDNS6AddressRecord()
           
 java.net.NetworkInterface getInterface()
           
 java.lang.String getName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_address

protected java.net.InetAddress _address

_interfaze

protected java.net.NetworkInterface _interfaze
Constructor Detail

HostInfo

public HostInfo(java.net.InetAddress address,
                java.lang.String name)
Method Detail

getName

public java.lang.String getName()

getAddress

public java.net.InetAddress getAddress()

getInterface

public java.net.NetworkInterface getInterface()

getDNS4AddressRecord

public DNSRecord.Address getDNS4AddressRecord()

getDNS6AddressRecord

public DNSRecord.Address getDNS6AddressRecord()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addAddressRecords

public void addAddressRecords(DNSOutgoing out,
                              boolean authoritative)
                       throws java.io.IOException
Throws:
java.io.IOException