forked from I2P_Developers/i2p.i2p
some more defines
This commit is contained in:
@ -23,8 +23,10 @@ abstract class ExtensionHandler {
|
||||
|
||||
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";
|
||||
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 */
|
||||
private static final int MAX_METADATA_SIZE = Storage.MAX_PIECES * 20 * 5 / 4;
|
||||
private static final int PARALLEL_REQUESTS = 3;
|
||||
|
@ -79,6 +79,7 @@ public class Peer implements Comparable
|
||||
static final long OPTION_EXTENSION = 0x0000000000100000l;
|
||||
static final long OPTION_FAST = 0x0000000000000004l;
|
||||
static final long OPTION_DHT = 0x0000000000000001l;
|
||||
static final long OPTION_AZMP = 0x1000000000000000l;
|
||||
private long options;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user