18 lines
343 B
Java
18 lines
343 B
Java
package pr.tp2.udp.discovery;
|
|
|
|
public class TestDiscovery {
|
|
|
|
public static void main(String[] args) throws InterruptedException {
|
|
Runnable listener = () -> {
|
|
Discovery.listenAndReply();
|
|
};
|
|
new Thread(listener).start();
|
|
|
|
Discovery.sendWhois("051005022");
|
|
Discovery.sendIAM("tftp", "127.0.0.1:6969");
|
|
|
|
Thread.sleep(10000);
|
|
|
|
}
|
|
}
|