Change la partie Discovery qui n'était pas claire
This commit is contained in:
@@ -4,12 +4,12 @@ public class TestDiscovery {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
Runnable listener = () -> {
|
||||
Discovery.handleListen();
|
||||
Discovery.listenAndReply();
|
||||
};
|
||||
new Thread(listener).start();
|
||||
|
||||
Discovery.handleWhois("051005022");
|
||||
Discovery.handleIAM("tftp", "127.0.0.1:6969");
|
||||
Discovery.sendWhois("051005022");
|
||||
Discovery.sendIAM("tftp", "127.0.0.1:6969");
|
||||
|
||||
Thread.sleep(10000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user