arreglado ping y empezado peerdl y dirdl

This commit is contained in:
binlaab
2026-04-26 18:18:50 +02:00
parent e0eabbd9a8
commit b179408874
9 changed files with 97 additions and 26 deletions

View File

@@ -246,6 +246,7 @@ public class NFController {
case NFCommands.COM_FILELIST_PEER:
case NFCommands.COM_DOWNLOAD_PEER:
commandAllowed = (currentState == ONLINE);
System.out.println("allowed = " + commandAllowed);
if (!commandAllowed) {
System.err.println("* Comando no permitido en estado OFFLINE. Haz un 'ping' primero.");
}
@@ -270,6 +271,7 @@ public class NFController {
switch (currentCommand) {
case NFCommands.COM_PING:
System.out.println("updateCurrentState ping");
currentState = ONLINE;
break;