Additional top-level classes in compilation unit: Tcp, Packet.
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final int | |
| private static final int | |
| private static final DNSDatagramChannelFactory | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Object | |
| private static final SecureRandom | |
| private static final String[] | |
| private static final int | |
| private Map | |
| private Map | |
| private int | |
| private final Cleaner. | |
| private static final int | |
| private int[] | |
| private InetAddress[] | |
| private int | |
| private static final int | |
| private final ReentrantLock | |
| private final Selector |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| private void | |
| public void | |
| private byte[] | |
| private byte[] | |
| private byte[] | doUdpQuery(Packet pkt, InetAddress server, int port, int retry, int xid, AtomicLong unfulfilledTimeout, boolean unfulfilledOnly)
Tries to retrieve a UDP packet matching the given xid received within the timeout. |
| private static void | |
| pack-priv DatagramChannel | |
| private boolean | |
| private byte[] | |
| private void | |
| private Packet | |
| pack-priv ResourceRecords | |
| pack-priv ResourceRecords |
| debug | back to summary |
|---|---|
| private static final boolean debug | |
| DEFAULT_PORT | back to summary |
|---|---|
| private static final int DEFAULT_PORT | |
| DNS_HDR_SIZE | back to summary |
|---|---|
| private static final int DNS_HDR_SIZE | |
| factory | back to summary |
|---|---|
| private static final DNSDatagramChannelFactory factory | |
| FLAGS_OFFSET | back to summary |
|---|---|
| private static final int FLAGS_OFFSET | |
| FORMAT_ERROR | back to summary |
|---|---|
| private static final int FORMAT_ERROR | |
| IDENT_OFFSET | back to summary |
|---|---|
| private static final int IDENT_OFFSET | |
| MIN_TIMEOUT | back to summary |
|---|---|
| private static final int MIN_TIMEOUT | |
| NAME_ERROR | back to summary |
|---|---|
| private static final int NAME_ERROR | |
| NO_ERROR | back to summary |
|---|---|
| private static final int NO_ERROR | |
| NOT_IMPL | back to summary |
|---|---|
| private static final int NOT_IMPL | |
| NUMADD_OFFSET | back to summary |
|---|---|
| private static final int NUMADD_OFFSET | |
| NUMANS_OFFSET | back to summary |
|---|---|
| private static final int NUMANS_OFFSET | |
| NUMAUTH_OFFSET | back to summary |
|---|---|
| private static final int NUMAUTH_OFFSET | |
| NUMQ_OFFSET | back to summary |
|---|---|
| private static final int NUMQ_OFFSET | |
| queuesLock | back to summary |
|---|---|
| private Object queuesLock | |
| random | back to summary |
|---|---|
| private static final SecureRandom random | |
| rcodeDescription | back to summary |
|---|---|
| private static final String[] rcodeDescription | |
| REFUSED | back to summary |
|---|---|
| private static final int REFUSED | |
| reqs | back to summary |
|---|---|
| private Map<Integer, ResourceRecord> reqs | |
| resps | back to summary |
|---|---|
| private Map<Integer, byte[]> resps | |
| retries | back to summary |
|---|---|
| private int retries | |
| selectorCleanup | back to summary |
|---|---|
| private final Cleaner. | |
| SERVER_FAILURE | back to summary |
|---|---|
| private static final int SERVER_FAILURE | |
| serverPorts | back to summary |
|---|---|
| private int[] serverPorts | |
| servers | back to summary |
|---|---|
| private InetAddress[] servers | |
| timeout | back to summary |
|---|---|
| private int timeout | |
| TRANSACTION_ID_BOUND | back to summary |
|---|---|
| private static final int TRANSACTION_ID_BOUND | |
| udpChannelLock | back to summary |
|---|---|
| private final ReentrantLock udpChannelLock | |
| udpChannelSelector | back to summary |
|---|---|
| private final Selector udpChannelSelector | |
| DnsClient | back to summary |
|---|---|
| public DnsClient(String[] servers, int timeout, int retries) throws NamingException | |
| blockingReceive | back to summary |
|---|---|
| pack-priv boolean blockingReceive(DatagramChannel dc, InetSocketAddress target, ByteBuffer buffer, long timeout) throws IOException | |
| checkResponseCode | back to summary |
|---|---|
| private void checkResponseCode(Header hdr) throws NamingException | |
| close | back to summary |
|---|---|
| public void close() | |
| continueTcpQuery | back to summary |
|---|---|
| private byte[] continueTcpQuery(Tcp tcp) throws IOException | |
| doTcpQuery | back to summary |
|---|---|
| private byte[] doTcpQuery(Tcp tcp, Packet pkt) throws IOException | |
| doUdpQuery | back to summary |
|---|---|
| private byte[] doUdpQuery(Packet pkt, InetAddress server, int port, int retry, int xid, AtomicLong unfulfilledTimeout, boolean unfulfilledOnly) throws IOException, NamingException Tries to retrieve a UDP packet matching the given xid received within the timeout. If a packet with different xid is received, the received packet is enqueued with the corresponding xid in 'resps'. | |
| dprint | back to summary |
|---|---|
| private static void dprint(String mess) | |
| getDatagramChannel | back to summary |
|---|---|
| pack-priv DatagramChannel getDatagramChannel() throws NamingException | |
| isMatchResponse | back to summary |
|---|---|
| private boolean isMatchResponse(byte[] pkt, int xid) throws NamingException | |
| lookupResponse | back to summary |
|---|---|
| private byte[] lookupResponse(Integer xid) throws NamingException | |
| makeQueryName | back to summary |
|---|---|
| private void makeQueryName(DnsName fqdn, Packet pkt, int off) | |
| makeQueryPacket | back to summary |
|---|---|
| private Packet makeQueryPacket(DnsName fqdn, int xid, int qclass, int qtype, boolean recursion) | |
| query | back to summary |
|---|---|
| pack-priv ResourceRecords query(DnsName fqdn, int qclass, int qtype, boolean recursion, boolean auth) throws NamingException | |
| queryZone | back to summary |
|---|---|
| pack-priv ResourceRecords queryZone(DnsName zone, int qclass, boolean recursion) throws NamingException | |