All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
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
[legend]

List of all members.

Classes

class  MessageInputStream

Public Member Functions

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

Static Public Attributes

static boolean USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET = true

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.

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

Definition at line 29 of file DNSIncoming.java.


Constructor & Destructor Documentation

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

Parse a message from a datagram packet.

Parameters:
packet
Exceptions:
IOException

Definition at line 184 of file DNSIncoming.java.

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

Definition at line 246 of file DNSIncoming.java.


Member Function Documentation

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

Returns a hex-string for printing

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

Definition at line 570 of file DNSIncoming.java.

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

Appends answers to this Incoming.

Exceptions:
IllegalArgumentExceptionIf not a query or if Truncated.

Definition at line 538 of file DNSIncoming.java.

Definition at line 260 of file DNSIncoming.java.

Definition at line 549 of file DNSIncoming.java.

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

Returns:
the senderUDPPayload

Definition at line 558 of file DNSIncoming.java.

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

Debugging.

Definition at line 447 of file DNSIncoming.java.

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

Definition at line 283 of file DNSIncoming.java.

Definition at line 271 of file DNSIncoming.java.

Definition at line 459 of file DNSIncoming.java.


Member Data Documentation

Definition at line 174 of file DNSIncoming.java.

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 DNSIncoming.java.

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

Definition at line 170 of file DNSIncoming.java.

Definition at line 172 of file DNSIncoming.java.

Definition at line 176 of file DNSIncoming.java.

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

Definition at line 30 of file DNSIncoming.java.

Definition at line 34 of file DNSIncoming.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


zeroconf_jmdns
Author(s): Daniel Stonier
autogenerated on Tue Nov 6 2012 13:08:27