Classes | Public Member Functions | Static Public Attributes | Package Functions | Private Member Functions | Private Attributes | Static Private Attributes
javax.jmdns.impl.DNSIncoming Class Reference
Inheritance diagram for javax.jmdns.impl.DNSIncoming:
Inheritance graph

List of all members.


class  MessageInputStream

Public Member Functions

DNSIncoming clone ()
 DNSIncoming (DatagramPacket packet) throws IOException
int elapseSinceArrival ()
int getSenderUDPPayload ()
String toString ()

Static Public Attributes


Package Functions

void append (DNSIncoming that)
String print (boolean dump)

Private Member Functions

String _hexString (byte[] bytes)
 DNSIncoming (int flags, int id, boolean multicast, DatagramPacket packet, long receivedTime)
DNSRecord readAnswer (InetAddress source)
DNSQuestion readQuestion ()

Private Attributes

final MessageInputStream _messageInputStream
final DatagramPacket _packet
final long _receivedTime
int _senderUDPPayload

Static Private Attributes

static final char[] _nibbleToHex = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }
static Logger logger = Logger.getLogger(DNSIncoming.class.getName())

Detailed Description

Parse an incoming DNS message into its components.

Arthur van Hoff, Werner Randelshofer, Pierre Frisch, Daniel Bobbert

Definition at line 29 of file

Constructor & Destructor Documentation

javax.jmdns.impl.DNSIncoming.DNSIncoming ( DatagramPacket  packet) throws IOException [inline]

Parse a message from a datagram packet.


Definition at line 184 of file

javax.jmdns.impl.DNSIncoming.DNSIncoming ( int  flags,
int  id,
boolean  multicast,
DatagramPacket  packet,
long  receivedTime 
) [inline, private]

Definition at line 246 of file

Member Function Documentation

String javax.jmdns.impl.DNSIncoming._hexString ( byte[]  bytes) [inline, private]

Returns a hex-string for printing

Returns a hex-string which can be used within a SQL expression

Definition at line 570 of file

void javax.jmdns.impl.DNSIncoming.append ( DNSIncoming  that) [inline, package]

Appends answers to this Incoming.

IllegalArgumentExceptionIf not a query or if Truncated.

Definition at line 538 of file

Definition at line 260 of file

Definition at line 549 of file

This will return the default UDP payload except if an OPT record was found with a different size.

the senderUDPPayload

Definition at line 558 of file

String javax.jmdns.impl.DNSIncoming.print ( boolean  dump) [inline, package]


Definition at line 447 of file

DNSRecord javax.jmdns.impl.DNSIncoming.readAnswer ( InetAddress  source) [inline, private]

Definition at line 283 of file

Definition at line 271 of file

Definition at line 459 of file

Member Data Documentation

Definition at line 174 of file

final char [] javax.jmdns.impl.DNSIncoming._nibbleToHex = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } [static, private]

Definition at line 562 of file

final DatagramPacket javax.jmdns.impl.DNSIncoming._packet [private]

Definition at line 170 of file

Definition at line 172 of file

Definition at line 176 of file

Logger javax.jmdns.impl.DNSIncoming.logger = Logger.getLogger(DNSIncoming.class.getName()) [static, private]

Definition at line 30 of file

Definition at line 34 of file

The documentation for this class was generated from the following file:

Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27