/* */ #ifndef D_BT_CONSTANTS_H #define D_BT_CONSTANTS_H #include "common.h" #include #include typedef std::map Extensions; #define INFO_HASH_LENGTH 20 #define PIECE_HASH_LENGTH 20 #define PEER_ID_LENGTH 20 #define INFO_HASH_LENGTH 20 #define MAX_BLOCK_LENGTH (16*1024) #define DEFAULT_MAX_OUTSTANDING_REQUEST 6 #define OUTSTANDING_REQUEST_STEP 6 // Upper Bound of the number of outstanding request #define UB_MAX_OUTSTANDING_REQUEST 256 #define METADATA_PIECE_SIZE (16*1024) #define LPD_MULTICAST_ADDR "239.192.152.143" #define LPD_MULTICAST_PORT 6771 #define COMPACT_LEN_IPV4 6 #define COMPACT_LEN_IPV6 18 #endif // D_BT_CONSTANTS_H