|
JmDNS 3.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.jmdns.impl.DNSMessage
javax.jmdns.impl.DNSOutgoing
public final class DNSOutgoing
An outgoing DNS message.
| Nested Class Summary | |
|---|---|
static class |
DNSOutgoing.MessageOutputStream
|
| Field Summary | |
|---|---|
static boolean |
USE_DOMAIN_NAME_COMPRESSION
This can be used to turn off domain name compression. |
| Fields inherited from class javax.jmdns.impl.DNSMessage |
|---|
_additionals, _answers, _authoritativeAnswers, _questions, MULTICAST, UNICAST |
| Constructor Summary | |
|---|---|
DNSOutgoing(int flags)
Create an outgoing multicast query or response. |
|
DNSOutgoing(int flags,
boolean multicast)
Create an outgoing query or response. |
|
DNSOutgoing(int flags,
boolean multicast,
int senderUDPPayload)
Create an outgoing query or response. |
|
| Method Summary | |
|---|---|
void |
addAdditionalAnswer(DNSIncoming in,
DNSRecord rec)
Add an additional answer to the record. |
void |
addAnswer(DNSIncoming in,
DNSRecord rec)
Add an answer if it is not suppressed. |
void |
addAnswer(DNSRecord rec,
long now)
Add an answer to the message. |
void |
addAuthorativeAnswer(DNSRecord rec)
Add an authoritative answer to the message. |
void |
addQuestion(DNSQuestion rec)
Add a question to the message. |
int |
availableSpace()
Return the number of byte available in the message. |
byte[] |
data()
Builds the final message buffer to be send and returns it. |
int |
getMaxUDPPayload()
|
boolean |
isQuery()
Check if the message is a query. |
String |
toString()
|
| Methods inherited from class javax.jmdns.impl.DNSMessage |
|---|
getAdditionals, getAllAnswers, getAnswers, getAuthorities, getFlags, getId, getNumberOfAdditionals, getNumberOfAnswers, getNumberOfAuthorities, getNumberOfQuestions, getQuestions, isEmpty, isMulticast, isResponse, isTruncated, print, setFlags, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean USE_DOMAIN_NAME_COMPRESSION
| Constructor Detail |
|---|
public DNSOutgoing(int flags)
flags -
public DNSOutgoing(int flags,
boolean multicast)
flags - multicast -
public DNSOutgoing(int flags,
boolean multicast,
int senderUDPPayload)
flags - multicast - senderUDPPayload - The sender's UDP payload size is the number of bytes of the largest UDP payload that can be reassembled and delivered in the sender's network stack.| Method Detail |
|---|
public int availableSpace()
public void addQuestion(DNSQuestion rec)
throws IOException
rec -
IOException
public void addAnswer(DNSIncoming in,
DNSRecord rec)
throws IOException
in - rec -
IOException
public void addAnswer(DNSRecord rec,
long now)
throws IOException
rec - now -
IOException
public void addAuthorativeAnswer(DNSRecord rec)
throws IOException
rec -
IOException
public void addAdditionalAnswer(DNSIncoming in,
DNSRecord rec)
throws IOException
in - rec -
IOExceptionpublic byte[] data()
public boolean isQuery()
DNSMessage
isQuery in class DNSMessagepublic String toString()
toString in class Objectpublic int getMaxUDPPayload()
|
Last updated 2011-08-25 12:40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||