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()) |
Parse an incoming DNS message into its components.
Definition at line 29 of file DNSIncoming.java.
javax.jmdns.impl.DNSIncoming.DNSIncoming | ( | DatagramPacket | packet | ) | throws IOException [inline] |
Parse a message from a datagram packet.
packet |
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.
String javax.jmdns.impl.DNSIncoming._hexString | ( | byte[] | bytes | ) | [inline, private] |
Returns a hex-string for printing
bytes |
Definition at line 570 of file DNSIncoming.java.
void javax.jmdns.impl.DNSIncoming.append | ( | DNSIncoming | that | ) | [inline, package] |
Appends answers to this Incoming.
IllegalArgumentException | If not a query or if Truncated. |
Definition at line 538 of file DNSIncoming.java.
DNSIncoming javax.jmdns.impl.DNSIncoming.clone | ( | ) | [inline] |
Definition at line 260 of file DNSIncoming.java.
int javax.jmdns.impl.DNSIncoming.elapseSinceArrival | ( | ) | [inline] |
Definition at line 549 of file DNSIncoming.java.
int javax.jmdns.impl.DNSIncoming.getSenderUDPPayload | ( | ) | [inline] |
This will return the default UDP payload except if an OPT record was found with a different size.
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.
DNSQuestion javax.jmdns.impl.DNSIncoming.readQuestion | ( | ) | [inline, private] |
Definition at line 271 of file DNSIncoming.java.
String javax.jmdns.impl.DNSIncoming.toString | ( | ) | [inline] |
Definition at line 459 of file DNSIncoming.java.
final MessageInputStream javax.jmdns.impl.DNSIncoming._messageInputStream [private] |
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.
final long javax.jmdns.impl.DNSIncoming._receivedTime [private] |
Definition at line 172 of file DNSIncoming.java.
int javax.jmdns.impl.DNSIncoming._senderUDPPayload [private] |
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.
boolean javax.jmdns.impl.DNSIncoming.USE_DOMAIN_NAME_FORMAT_FOR_SRV_TARGET = true [static] |
Definition at line 34 of file DNSIncoming.java.