mirror of
https://github.com/binlaab/nanofiles.git
synced 2026-07-01 13:37:22 +02:00
quemen redes
This commit is contained in:
@@ -12,7 +12,9 @@ public class PeerMessageOps {
|
||||
* los diferentes tipos de mensajes del protocolo de comunicación con un par
|
||||
* servidor de ficheros (valores posibles del campo "operation").
|
||||
*/
|
||||
|
||||
public static final byte OPCODE_REQUEST_PEER_FILES = 1;
|
||||
public static final byte OPCODE_PEER_FILE = 2;
|
||||
public static final byte OPCODE_PEER_FILES_ERROR = 3;
|
||||
|
||||
|
||||
|
||||
@@ -22,14 +24,14 @@ public class PeerMessageOps {
|
||||
* su representación textual a "valid_operations_str" EN EL MISMO ORDEN.
|
||||
*/
|
||||
private static final Byte[] _valid_opcodes = { OPCODE_INVALID_CODE,
|
||||
|
||||
|
||||
|
||||
OPCODE_REQUEST_PEER_FILES,
|
||||
OPCODE_PEER_FILE,
|
||||
OPCODE_PEER_FILES_ERROR
|
||||
};
|
||||
private static final String[] _valid_operations_str = { "INVALID_OPCODE",
|
||||
|
||||
|
||||
|
||||
"REQUEST_PEER_FILES",
|
||||
"PEER_FILE",
|
||||
"PEER_FILES_ERROR"
|
||||
};
|
||||
|
||||
private static Map<String, Byte> _operation_to_opcode;
|
||||
|
||||
Reference in New Issue
Block a user