feat: display broadcast user name
Dieser Commit ist enthalten in:
Ursprung
0b13c1242b
Commit
6ef37e2d72
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren