Package javax.jmdns.impl
Class DNSIncoming
- java.lang.Object
-
- javax.jmdns.impl.DNSMessage
-
- javax.jmdns.impl.DNSIncoming
-
public final class DNSIncoming extends DNSMessage
Parse an incoming DNS message into its components.- Author:
- Arthur van Hoff, Werner Randelshofer, Pierre Frisch, Daniel Bobbert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DNSIncoming.MessageInputStream
-
Field Summary
Fields Modifier and Type Field Description static boolean
USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
-
Fields inherited from class javax.jmdns.impl.DNSMessage
_additionals, _answers, _authoritativeAnswers, _questions, MULTICAST, UNICAST
-
-
Constructor Summary
Constructors Constructor Description DNSIncoming(DatagramPacket packet)
Parse a message from a datagram packet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
toString()
-
Methods inherited from class javax.jmdns.impl.DNSMessage
getAdditionals, getAllAnswers, getAnswers, getAuthorities, getFlags, getId, getNumberOfAdditionals, getNumberOfAnswers, getNumberOfAuthorities, getNumberOfQuestions, getOperationCode, getQuestions, isAuthoritativeAnswer, isEmpty, isMulticast, isQuery, isResponse, isTruncated, isValidResponseCode, print, setFlags, setId
-
-
-
-
Constructor Detail
-
DNSIncoming
public DNSIncoming(DatagramPacket packet) throws IOException
Parse a message from a datagram packet.- Parameters:
packet
-- Throws:
IOException
-
-
Method Detail
-
clone
public DNSIncoming clone()
-
elapseSinceArrival
public int elapseSinceArrival()
-
getSenderUDPPayload
public int getSenderUDPPayload()
This will return the default UDP payload except if an OPT record was found with a different size.- Returns:
- the senderUDPPayload
-
-