Initial commit
This commit is contained in:
17
src/main/java/pr/tp2/udp/discovery/TestDiscovery.java
Normal file
17
src/main/java/pr/tp2/udp/discovery/TestDiscovery.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package pr.tp2.udp.discovery;
|
||||
|
||||
public class TestDiscovery {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
Runnable listener = () -> {
|
||||
Discovery.handleListen();
|
||||
};
|
||||
new Thread(listener).start();
|
||||
|
||||
Discovery.handleWhois("051005022");
|
||||
Discovery.handleIAM("tftp", "127.0.0.1:6969");
|
||||
|
||||
Thread.sleep(10000);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user