Some more work on MDNS
This commit is contained in:
parent
865d0da0aa
commit
a3293714c5
2 changed files with 27 additions and 24 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package zutil.net.dns;
|
||||
|
||||
import zutil.io.MultiPrintStream;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
|
|
@ -13,7 +15,14 @@ public class MulticastDNSClientTest {
|
|||
MulticastDNSClient mdns = new MulticastDNSClient();
|
||||
mdns.start();
|
||||
//mdns.sendProbe("appletv.local");
|
||||
//mdns.sendProbe("_services._dns-sd._udp.local");
|
||||
mdns.sendProbe("_googlecast._tcp.local");
|
||||
mdns.sendProbe("_services._dns-sd._udp.local");
|
||||
//mdns.sendProbe("_googlecast._tcp.local");
|
||||
mdns.setListener(new DNSResolutionListener() {
|
||||
@Override
|
||||
public void receivedResponse(DNSPacket packet) {
|
||||
System.out.println("####### Received:");
|
||||
MultiPrintStream.out.dump(packet,3);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue