class VpnWatchdog {

    void sendPacket() throws AdVpnThread.VpnNetworkException {
        if (!enabled)
            return;

        Log.d(TAG, "sendPacket: Sending packet, poll timeout is " + pollTimeout);

        DatagramPacket outPacket = new DatagramPacket(new byte[0], 0, 0 /* length */, target, 53);
        try {
            DatagramSocket socket = newDatagramSocket();
            socket.send(outPacket);
            socket.close();
            lastPacketSent = System.currentTimeMillis();
        } catch (IOException e) {
            throw new AdVpnThread.VpnNetworkException("Received exception", e);
        }
    }

}