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
Methods inherited from class javax.jmdns.impl.DNSMessage |
getAdditionals, getAllAnswers, getAnswers, getAuthorities, getFlags, getId, getNumberOfAdditionals, getNumberOfAnswers, getNumberOfAuthorities, getNumberOfQuestions, getQuestions, isEmpty, isMulticast, isQuery, isResponse, isTruncated, print, setFlags, setId |
USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
public static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
DNSIncoming
public DNSIncoming(DatagramPacket packet)
throws IOException
- Parse a message from a datagram packet.
- Parameters:
packet
-
- Throws:
IOException
clone
public DNSIncoming clone()
- Overrides:
clone
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
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
Copyright © 2002-2011 JmDNS. All Rights Reserved.