1
0
Fork 0

feat: display broadcast user name

Dieser Commit ist enthalten in:
Arnaud Vergnet 2020-12-07 15:40:23 +01:00
Ursprung 0b13c1242b
Commit 6ef37e2d72

Datei anzeigen

@ -43,9 +43,9 @@ public class MainApp extends Application {
netDiscoverer = new NetDiscoverer();
// Network discovery test
netDiscoverer.startDiscoveryListening("Yohan", null, Throwable::printStackTrace);
netDiscoverer.startDiscoveryListening("Bob", null, Throwable::printStackTrace);
netDiscoverer.discoverActiveUsers("Broadcast",
(ipAddr, data) -> System.out.println("User detected at address : " + ipAddr.toString()),
(ipAddr, data) -> System.out.println("User detected at address : " + ipAddr.toString() + " with name " + data),
Throwable::printStackTrace);
// TCP communnication tests