IT. Expert System.

Android Reference

DnsPinger


android.net

Class DnsPinger



  • public final class DnsPinger
    extends Handler
    Performs a simple DNS "ping" by sending a "server status" query packet to the DNS server. As long as the server replies, we consider it a success.

    We do not use a simple hostname lookup because that could be cached and the API may not differentiate between a time out and a failure lookup (which we really care about).

    • Method Detail

      • handleMessage

        public void handleMessage(Message msg)
        Description copied from class: Handler
        Subclasses must implement this to receive messages.
        Overrides:
        handleMessage in class Handler
      • getDnsList

        public List<InetAddress> getDnsList()
        Returns a list of DNS addresses, coming from either the link properties of the specified connection or the default system DNS if the link properties has no dnses.
        Returns:
        a non-empty non-null list
      • pingDnsAsync

        public int pingDnsAsync(InetAddress dns,
                       int timeout,
                       int delay)
        Send a ping. The response will come via a DNS_PING_RESULT to the handler specified at creation.
        Parameters:
        dns - address of dns server to ping
        timeout - timeout for ping
        Returns:
        an ID field, which will also be included in the DNS_PING_RESULT message.
      • cancelPings

        public void cancelPings()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 523 / 158680982. Delta: 0.26502 с