mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 13:37:22 +02:00
implementado quit, hay que cerrar los sockets TCP cuando terminen las cosas
This commit is contained in:
@@ -75,6 +75,11 @@ public class DirMessage {
|
||||
|
||||
}
|
||||
|
||||
public DirMessage(String op, String nick) {
|
||||
this(op);
|
||||
this.nick = nick;
|
||||
}
|
||||
|
||||
public DirMessage(String op, FileInfo[] filelist) {
|
||||
this(op);
|
||||
this.fileList = filelist;
|
||||
@@ -275,6 +280,7 @@ public class DirMessage {
|
||||
break;
|
||||
|
||||
case DirMessageOps.OPERATION_SERVE:
|
||||
case DirMessageOps.OPERATION_STOP_SERVE:
|
||||
sb.append(FIELDNAME_NICK + DELIMITER + this.nick + END_LINE);
|
||||
sb.append(FIELDNAME_IP + DELIMITER + this.ip + END_LINE);
|
||||
sb.append(FIELDNAME_PORT + DELIMITER + this.port + END_LINE);
|
||||
|
||||
Reference in New Issue
Block a user