Empezar boletín 5, el 4 está acabado

This commit is contained in:
binlaab
2026-04-22 11:53:24 +02:00
parent 25bf19ee9c
commit c0fb933fce
6 changed files with 192 additions and 66 deletions

View File

@@ -130,8 +130,6 @@ public class NFControllerLogicDir {
boolean result = false;
if (this.directoryConnector.registerFileServer(serverPort)) {
System.out.println("* File server successfully registered with the directory");
result = true;
} else {

View File

@@ -189,14 +189,15 @@ public class NFControllerLogicP2P {
* @return El puerto en el que escucha el servidor, o 0 en caso de error.
*/
protected int getServerPort() {
int port = 0;
// int port = 0;
/*
* TODO: Devolver el puerto de escucha de nuestro servidor de ficheros
*/
return port;
return NFServer.PORT;
}
/**