public final class DNSIncoming extends DNSMessage
| Modifier and Type | Class and Description |
|---|---|
static class |
DNSIncoming.MessageInputStream |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET |
_additionals, _answers, _authoritativeAnswers, _questions, MULTICAST, UNICAST| Constructor and Description |
|---|
DNSIncoming(java.net.DatagramPacket packet)
Parse a message from a datagram packet.
|
| Modifier and Type | Method and Description |
|---|---|
DNSIncoming |
clone() |
int |
elapseSinceArrival() |
int |
getSenderUDPPayload()
This will return the default UDP payload except if an OPT record was found with a different size.
|
java.lang.String |
toString() |
getAdditionals, getAllAnswers, getAnswers, getAuthorities, getFlags, getId, getNumberOfAdditionals, getNumberOfAnswers, getNumberOfAuthorities, getNumberOfQuestions, getQuestions, isEmpty, isMulticast, isQuery, isResponse, isTruncated, print, setFlags, setIdpublic static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
public DNSIncoming(java.net.DatagramPacket packet)
throws java.io.IOException
packet - java.io.IOExceptionpublic DNSIncoming clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int elapseSinceArrival()
public int getSenderUDPPayload()