mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 19:56:31 +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);
|
||||
|
||||
@@ -22,6 +22,10 @@ public class DirMessageOps {
|
||||
|
||||
public static final String OPERATION_REQUEST_SERVER_PEERS = "peers";
|
||||
public static final String OPERATION_SERVER_PEERS = "serverPeers";
|
||||
|
||||
public static final String OPERATION_STOP_SERVE = "stopServe";
|
||||
public static final String OPERATION_STOP_SERVE_OK = "stopServeOk";
|
||||
public static final String OPERATION_STOP_SERVE_ERROR = "stopServeError";
|
||||
// TODO: definir las operaciones del protocolo de directorio
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user