javax.jmdns.impl
Class DNSOutgoing
java.lang.Object
javax.jmdns.impl.DNSOutgoing
public final class DNSOutgoing
extends java.lang.Object
An outgoing DNS message.
DNSOutgoing(int flags) - Create an outgoing multicast query or response.
|
DNSOutgoing(int flags, boolean multicast) - Create an outgoing query or response.
|
USE_DOMAIN_NAME_COMPRESSION
public static boolean USE_DOMAIN_NAME_COMPRESSION
This can be used to turn off domain name compression. This was helpful for
tracking problems interacting with other mdns implementations.
DNSOutgoing
public DNSOutgoing(int flags)
Create an outgoing multicast query or response.
DNSOutgoing
public DNSOutgoing(int flags,
boolean multicast)
Create an outgoing query or response.
addAnswer
public void addAnswer(DNSRecord rec,
long now)
throws IOException
Add an answer to the message.
addAuthorativeAnswer
public void addAuthorativeAnswer(DNSRecord rec)
throws IOException
Add an authorative answer to the message.
addQuestion
public void addQuestion(DNSQuestion rec)
throws IOException
Add a question to the message.
isEmpty
public boolean isEmpty()
toString
public String toString()