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, setId
public static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
public DNSIncoming(java.net.DatagramPacket packet) throws java.io.IOException
packet
- java.io.IOException
public DNSIncoming clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int elapseSinceArrival()
public int getSenderUDPPayload()