javax.jmdns.impl
Class HostInfo
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_name
protected java.lang.String _name
_address
protected java.net.InetAddress _address
_interfaze
protected java.net.NetworkInterface _interfaze
HostInfo
public HostInfo(java.net.InetAddress address,
java.lang.String name)
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