some more defines

This commit is contained in:
zzz
2011-01-03 16:21:51 +00:00
parent 4d4bfa00b3
commit 8d59fd1cbe
2 changed files with 4 additions and 1 deletions

View File

@ -23,8 +23,10 @@ abstract class ExtensionHandler {
private static final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(ExtensionHandler.class); private static final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(ExtensionHandler.class);
public static final int ID_METADATA = 3; public static final int ID_METADATA = 1;
private static final String TYPE_METADATA = "ut_metadata"; private static final String TYPE_METADATA = "ut_metadata";
public static final int ID_PEX = 2;
private static final String TYPE_PEX = "ut_pex";
/** Pieces * SHA1 Hash length, + 25% extra for file names, benconding overhead, etc */ /** Pieces * SHA1 Hash length, + 25% extra for file names, benconding overhead, etc */
private static final int MAX_METADATA_SIZE = Storage.MAX_PIECES * 20 * 5 / 4; private static final int MAX_METADATA_SIZE = Storage.MAX_PIECES * 20 * 5 / 4;
private static final int PARALLEL_REQUESTS = 3; private static final int PARALLEL_REQUESTS = 3;

View File

@ -79,6 +79,7 @@ public class Peer implements Comparable
static final long OPTION_EXTENSION = 0x0000000000100000l; static final long OPTION_EXTENSION = 0x0000000000100000l;
static final long OPTION_FAST = 0x0000000000000004l; static final long OPTION_FAST = 0x0000000000000004l;
static final long OPTION_DHT = 0x0000000000000001l; static final long OPTION_DHT = 0x0000000000000001l;
static final long OPTION_AZMP = 0x1000000000000000l;
private long options; private long options;
/** /**