javax.jmdns.impl

Class DNSOutgoing


public final class DNSOutgoing
extends java.lang.Object

An outgoing DNS message.

Field Summary

static boolean
USE_DOMAIN_NAME_COMPRESSION
This can be used to turn off domain name compression.

Constructor Summary

DNSOutgoing(int flags)
Create an outgoing multicast query or response.
DNSOutgoing(int flags, boolean multicast)
Create an outgoing query or response.

Method Summary

void
addAnswer(DNSRecord rec, long now)
Add an answer to the message.
void
addAuthorativeAnswer(DNSRecord rec)
Add an authorative answer to the message.
void
addQuestion(DNSQuestion rec)
Add a question to the message.
boolean
isEmpty()
String
toString()

Field Details

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.

Constructor Details

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.

Method Details

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()