root / project / src / main / java / utils / Constants.java @ 1
History | View | Annotate | Download (913 Bytes)
1 | 1 | up20120064 | package main.java.utils; |
---|---|---|---|
2 | |||
3 | import main.java.peer.Peer; |
||
4 | |||
5 | public class Constants { |
||
6 | |||
7 | public static final int CHUNK_MAX_SIZE = 64000; |
||
8 | public static final String PUTCHUNK = "PUTCHUNK"; |
||
9 | public static final String STORED = "STORED"; |
||
10 | public static final String REMOVED = "REMOVED"; |
||
11 | public static final String GETCHUNK = "GETCHUNK"; |
||
12 | public static final String DELETE = "DELETE"; |
||
13 | public static final String CHUNK = "CHUNK"; |
||
14 | public static final String PROTOCOL_VERSION= "1.0"; |
||
15 | public static final String MESSAGE_SEPARATOR = " "; |
||
16 | private final static char CR = (char) 0x0D; |
||
17 | private final static char LF = (char) 0x0A; |
||
18 | public final static String CRLF = "" + CR + LF; |
||
19 | public static final String ENCODING = "ISO-8859-1"; |
||
20 | public static final int MAX_WAITING_TIME = 400; |
||
21 | public static final int DISK_SIZE = 2560; |
||
22 | public static final int PACKET_MAX_SIZE = 65000; |
||
23 | |||
24 | } |