|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--smtp_relayserver.DNSPackageReader
This class allows you to read userfriendly a DNS package in a form of a byte array.
Copyright (C) 1998 Valentin Koch
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
| Field Summary | |
static short |
CQUERYM
|
static short |
CQUERYU
|
static short |
IQUERY
|
static short |
QUERY
|
| Constructor Summary | |
DNSPackageReader(byte[] dnsPackage)
Creates a DNSPackageReader. |
|
| Method Summary | |
short |
ansCount()
The number of entries int the answer section. |
short |
arCount()
The number of entries int the additional records section. |
short |
getOpcode()
The opcode of the query defined in RFC 883. |
short |
getQueryID()
The identifier of this package. |
java.util.Vector |
getRecords()
Returns the records int the DNS package |
short |
getRespCode()
The response code of this package. |
boolean |
isAuthority()
If this response comes from a authority server for the domain in the corresponding query. |
boolean |
isResponse()
If this package is a response or a query. |
boolean |
isTruncated()
If this package is truncated to 512 bytes. |
short |
nsCount()
The number of name server res.rec. |
short |
queCount()
The number of entries int the question section. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final short QUERY
public static final short IQUERY
public static final short CQUERYM
public static final short CQUERYU
| Constructor Detail |
public DNSPackageReader(byte[] dnsPackage)
dnsPackage - The DNS package wich want to be read from| Method Detail |
public short getQueryID()
public boolean isResponse()
true if it is a response, false if it is a query.public short getOpcode()
QUERY, IQUERY, CQUERYM, CQUERYU.public boolean isAuthority()
true if the server is authority.public boolean isTruncated()
true if it is truncated.public short getRespCode()
public short queCount()
public short ansCount()
public short nsCount()
public short arCount()
public java.util.Vector getRecords()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||