class Ping implements Runnable {

    public Ping(final InetAddress dest, final PingListener listener) {
        mDest = dest;
        if (listener == null) {
            throw new NullPointerException();
        }
        mListener = listener;
        final byte type = dest instanceof Inet6Address ? EchoPacketBuilder.TYPE_ICMP_V6 : EchoPacketBuilder.TYPE_ICMP_V4;
        setEchoPacketBuilder(new EchoPacketBuilder(type, "abcdefghijklmnopqrstuvwabcdefghi".getBytes()));
    }

    public  Ping(final InetAddress dest, final PingListener listener);

}