Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.zeroconf.jmdns
Class HostInfo

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.zeroconf.jmdns.HostInfo

 class HostInfo
extends Object

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

Version:
%I%, %G%
Author:
Pierre Frisch, Werner Randelshofer

Field Summary
protected  InetAddress address
           
protected  NetworkInterface interfaze
           
protected  String name
           
 
Constructor Summary
HostInfo(InetAddress address, String name)
           
 
Method Summary
 InetAddress getAddress()
           
(package private)  DNSRecord.Address getDNS4AddressRecord()
           
(package private)  DNSRecord.Address getDNS6AddressRecord()
           
(package private)  DNSRecord.Address getDNSAddressRecord(DNSRecord.Address address)
           
 NetworkInterface getInterface()
           
 String getName()
           
(package private)  String incrementHostName()
           
(package private)  boolean shouldIgnorePacket(DatagramPacket packet)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

address

protected InetAddress address

interfaze

protected NetworkInterface interfaze
Constructor Detail

HostInfo

public HostInfo(InetAddress address,
                String name)
Method Detail

getName

public String getName()

getAddress

public InetAddress getAddress()

getInterface

public NetworkInterface getInterface()

incrementHostName

String incrementHostName()

shouldIgnorePacket

boolean shouldIgnorePacket(DatagramPacket packet)

getDNSAddressRecord

DNSRecord.Address getDNSAddressRecord(DNSRecord.Address address)

getDNS4AddressRecord

DNSRecord.Address getDNS4AddressRecord()

getDNS6AddressRecord

DNSRecord.Address getDNS6AddressRecord()

toString

public String toString()
Overrides:
toString in class Object

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.