quemen redes

This commit is contained in:
binlaab
2026-04-20 22:38:38 +02:00
parent aa8b7b30fb
commit 25bf19ee9c
15 changed files with 414 additions and 42 deletions

View File

@@ -10,7 +10,15 @@ public class NFServerThread extends Thread {
* (un socket distinto para "conversar" con un cliente)
*/
private Socket socket;
public NFServerThread(Socket externalSocket, NFServerState state) {
socket = externalSocket;
state.updateState(socket);
}
public void run() {
NFServer.serveFilesToClient(socket);
}
}