System.setProperty("jmdns.debug", "0");
    public static void main(String[] args) {        try {            System.setProperty("jmdns.debug", "0");                                    JmDNS jmdns = new JmDNS();            jmdns.addServiceTypeListener(new SampleListener());                        System.out.println("Press q and Enter, to quit");            int b;            while ((b = System.in.read()) != -1 && (char) b != 'q');             jmdns.close();        } catch (IOException e) {            e.printStackTrace();        }    }