|
|||||||||
| Home >> All >> com >> strangeberry >> [ rendezvous overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.strangeberry.rendezvous
Class DNSIncoming

java.lang.Objectcom.strangeberry.rendezvous.DNSConstants
com.strangeberry.rendezvous.DNSIncoming
- final class DNSIncoming
- extends DNSConstants
Parse an incoming DNS message into its components.
- Version:
- 1.18, 10/14/2002
| Field Summary | |
(package private) java.util.Vector |
answers
|
(package private) static int |
CLASS_ANY
|
(package private) static int |
CLASS_CH
|
(package private) static int |
CLASS_CS
|
(package private) static int |
CLASS_HS
|
(package private) static int |
CLASS_IN
|
(package private) static int |
CLASS_MASK
|
(package private) static int |
CLASS_NONE
|
(package private) static int |
CLASS_UNIQUE
|
(package private) byte[] |
data
|
(package private) static int |
DNS_PORT
|
(package private) static java.util.Vector |
EMPTY
|
(package private) int |
flags
|
(package private) static int |
FLAGS_AA
|
(package private) static int |
FLAGS_AD
|
(package private) static int |
FLAGS_CD
|
(package private) static int |
FLAGS_QR_MASK
|
(package private) static int |
FLAGS_QR_QUERY
|
(package private) static int |
FLAGS_QR_RESPONSE
|
(package private) static int |
FLAGS_RA
|
(package private) static int |
FLAGS_RD
|
(package private) static int |
FLAGS_TC
|
(package private) static int |
FLAGS_Z
|
(package private) int |
id
|
(package private) int |
len
|
(package private) static int |
MAX_MSG_ABSOLUTE
|
(package private) static int |
MAX_MSG_TYPICAL
|
(package private) static java.lang.String |
MDNS_GROUP
|
(package private) static int |
MDNS_PORT
|
(package private) int |
numAdditionals
|
(package private) int |
numAnswers
|
(package private) int |
numAuthorities
|
(package private) int |
numQuestions
|
(package private) int |
off
|
(package private) java.net.DatagramPacket |
packet
|
(package private) java.util.Vector |
questions
|
(package private) static int |
TYPE_A
|
(package private) static int |
TYPE_ANY
|
(package private) static int |
TYPE_CNAME
|
(package private) static int |
TYPE_HINFO
|
(package private) static int |
TYPE_MB
|
(package private) static int |
TYPE_MD
|
(package private) static int |
TYPE_MF
|
(package private) static int |
TYPE_MG
|
(package private) static int |
TYPE_MINFO
|
(package private) static int |
TYPE_MR
|
(package private) static int |
TYPE_MX
|
(package private) static int |
TYPE_NS
|
(package private) static int |
TYPE_NULL
|
(package private) static int |
TYPE_PTR
|
(package private) static int |
TYPE_SOA
|
(package private) static int |
TYPE_SRV
|
(package private) static int |
TYPE_TXT
|
(package private) static int |
TYPE_WKS
|
| Constructor Summary | |
(package private) |
DNSIncoming(java.net.DatagramPacket packet)
Parse a message from a datagram packet. |
| Method Summary | |
(package private) int |
get(int off)
|
(package private) boolean |
isQuery()
Check if the message is a query. |
(package private) boolean |
isResponse()
Check if the message is a response. |
(package private) void |
print(boolean dump)
Debugging. |
(package private) byte[] |
readBytes(int off,
int len)
|
(package private) int |
readInt()
|
(package private) java.lang.String |
readName()
|
(package private) int |
readUnsignedShort()
|
(package private) void |
readUTF(java.lang.StringBuffer buf,
int off,
int len)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
EMPTY
static final java.util.Vector EMPTY
packet
java.net.DatagramPacket packet
off
int off
len
int len
data
byte[] data
id
int id
flags
int flags
numQuestions
int numQuestions
numAnswers
int numAnswers
numAuthorities
int numAuthorities
numAdditionals
int numAdditionals
questions
java.util.Vector questions
answers
java.util.Vector answers
MDNS_GROUP
static final java.lang.String MDNS_GROUP
- See Also:
- Constant Field Values
MDNS_PORT
static final int MDNS_PORT
- See Also:
- Constant Field Values
DNS_PORT
static final int DNS_PORT
- See Also:
- Constant Field Values
MAX_MSG_TYPICAL
static final int MAX_MSG_TYPICAL
- See Also:
- Constant Field Values
MAX_MSG_ABSOLUTE
static final int MAX_MSG_ABSOLUTE
- See Also:
- Constant Field Values
FLAGS_QR_MASK
static final int FLAGS_QR_MASK
- See Also:
- Constant Field Values
FLAGS_QR_QUERY
static final int FLAGS_QR_QUERY
- See Also:
- Constant Field Values
FLAGS_QR_RESPONSE
static final int FLAGS_QR_RESPONSE
- See Also:
- Constant Field Values
FLAGS_AA
static final int FLAGS_AA
- See Also:
- Constant Field Values
FLAGS_TC
static final int FLAGS_TC
- See Also:
- Constant Field Values
FLAGS_RD
static final int FLAGS_RD
- See Also:
- Constant Field Values
FLAGS_RA
static final int FLAGS_RA
- See Also:
- Constant Field Values
FLAGS_Z
static final int FLAGS_Z
- See Also:
- Constant Field Values
FLAGS_AD
static final int FLAGS_AD
- See Also:
- Constant Field Values
FLAGS_CD
static final int FLAGS_CD
- See Also:
- Constant Field Values
CLASS_IN
static final int CLASS_IN
- See Also:
- Constant Field Values
CLASS_CS
static final int CLASS_CS
- See Also:
- Constant Field Values
CLASS_CH
static final int CLASS_CH
- See Also:
- Constant Field Values
CLASS_HS
static final int CLASS_HS
- See Also:
- Constant Field Values
CLASS_NONE
static final int CLASS_NONE
- See Also:
- Constant Field Values
CLASS_ANY
static final int CLASS_ANY
- See Also:
- Constant Field Values
CLASS_MASK
static final int CLASS_MASK
- See Also:
- Constant Field Values
CLASS_UNIQUE
static final int CLASS_UNIQUE
- See Also:
- Constant Field Values
TYPE_A
static final int TYPE_A
- See Also:
- Constant Field Values
TYPE_NS
static final int TYPE_NS
- See Also:
- Constant Field Values
TYPE_MD
static final int TYPE_MD
- See Also:
- Constant Field Values
TYPE_MF
static final int TYPE_MF
- See Also:
- Constant Field Values
TYPE_CNAME
static final int TYPE_CNAME
- See Also:
- Constant Field Values
TYPE_SOA
static final int TYPE_SOA
- See Also:
- Constant Field Values
TYPE_MB
static final int TYPE_MB
- See Also:
- Constant Field Values
TYPE_MG
static final int TYPE_MG
- See Also:
- Constant Field Values
TYPE_MR
static final int TYPE_MR
- See Also:
- Constant Field Values
TYPE_NULL
static final int TYPE_NULL
- See Also:
- Constant Field Values
TYPE_WKS
static final int TYPE_WKS
- See Also:
- Constant Field Values
TYPE_PTR
static final int TYPE_PTR
- See Also:
- Constant Field Values
TYPE_HINFO
static final int TYPE_HINFO
- See Also:
- Constant Field Values
TYPE_MINFO
static final int TYPE_MINFO
- See Also:
- Constant Field Values
TYPE_MX
static final int TYPE_MX
- See Also:
- Constant Field Values
TYPE_TXT
static final int TYPE_TXT
- See Also:
- Constant Field Values
TYPE_SRV
static final int TYPE_SRV
- See Also:
- Constant Field Values
TYPE_ANY
static final int TYPE_ANY
- See Also:
- Constant Field Values
| Constructor Detail |
DNSIncoming
DNSIncoming(java.net.DatagramPacket packet) throws java.io.IOException
- Parse a message from a datagram packet.
| Method Detail |
isQuery
boolean isQuery()
- Check if the message is a query.
isResponse
boolean isResponse()
- Check if the message is a response.
get
int get(int off) throws java.io.IOException
readUnsignedShort
int readUnsignedShort()
throws java.io.IOException
readInt
int readInt()
throws java.io.IOException
readBytes
byte[] readBytes(int off,
int len)
throws java.io.IOException
readUTF
void readUTF(java.lang.StringBuffer buf, int off, int len) throws java.io.IOException
readName
java.lang.String readName() throws java.io.IOException
void print(boolean dump)
- Debugging.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> strangeberry >> [ rendezvous overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC