net.java.sip.communicator.impl.protocol.zeroconf.jmdns
Class DNSRecord.Service
java.lang.Object
net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry
net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord.Service
- Enclosing class:
- DNSRecord
static class DNSRecord.Service
- extends DNSRecord
Service record.
| Fields inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord |
ttl |
| Methods inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord |
equals, getExpirationTime, getRemainingTTL, isExpired, isStale, resetTTL, sameAs, sameType, suppressedBy, suppressedBy, toString |
priority
int priority
weight
int weight
port
int port
server
String server
DNSRecord.Service
DNSRecord.Service(String name,
int type,
int clazz,
int ttl,
int priority,
int weight,
int port,
String server)
write
void write(DNSOutgoing out)
throws IOException
- Description copied from class:
DNSRecord
- Write this record into an outgoing message.
- Specified by:
write in class DNSRecord
- Throws:
IOException
sameValue
boolean sameValue(DNSRecord other)
- Description copied from class:
DNSRecord
- True if this record has the same value as some other record.
- Specified by:
sameValue in class DNSRecord
handleQuery
boolean handleQuery(JmDNS dns,
long expirationTime)
- Description copied from class:
DNSRecord
- Handles a query represented by this record.
- Specified by:
handleQuery in class DNSRecord
- Returns:
- Returns true if a conflict with one of the services registered
with JmDNS or with the hostname occured.
handleResponse
boolean handleResponse(JmDNS dns)
- Description copied from class:
DNSRecord
- Handles a responserepresented by this record.
- Specified by:
handleResponse in class DNSRecord
- Returns:
- Returns true if a conflict with one of the services registered
with JmDNS or with the hostname occured.
addAnswer
DNSOutgoing addAnswer(JmDNS dns,
DNSIncoming in,
InetAddress addr,
int port,
DNSOutgoing out)
throws IOException
- Description copied from class:
DNSRecord
- Adds this as an answer to the provided outgoing datagram.
- Specified by:
addAnswer in class DNSRecord
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.