Package javax.jmdns.impl
Class DNSIncoming
java.lang.Object
javax.jmdns.impl.DNSMessage
javax.jmdns.impl.DNSIncoming
Parse an incoming DNS message into its components.
- Author:
- Arthur van Hoff, Werner Randelshofer, Pierre Frisch, Daniel Bobbert
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class javax.jmdns.impl.DNSMessage
_additionals, _answers, _authoritativeAnswers, _questions, MULTICAST, UNICAST
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
public static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
-
-
Constructor Details
-
DNSIncoming
Parse a message from a datagram packet.- Parameters:
packet
-- Throws:
IOException
-
-
Method Details
-
clone
-
toString
-
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
-