JmDNS 3.4.1

javax.jmdns.impl
Class DNSIncoming

java.lang.Object
  extended by javax.jmdns.impl.DNSMessage
      extended by 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
static class DNSIncoming.MessageInputStream
           
 
Field Summary
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
DNSIncoming(DatagramPacket packet)
          Parse a message from a datagram packet.
 
Method Summary
 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, getQuestions, isEmpty, isMulticast, isQuery, isResponse, isTruncated, print, setFlags, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET

public static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET
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()
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

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.