#define UDPSEARCHSPEED SEC2MS(1) //1 sec - if this value is too low you will miss sources
#define MAX_RESULTS100 // max global search results
#define MAX_MORE_SEARCH_REQ5 // this gives a max. total search results of (1+5)*201 = 1206 or (1+5)*300 = 1800
#define MAX_CLIENTCONNECTIONTRY 2
#define CONNECTION_TIMEOUTSEC2MS(40) //40 secs - set his lower if you want less connections at once, set it higher if you have enough sockets (edonkey has its own timout too, so a very high value won't effect this)
#define FILEREASKTIME MIN2MS(29) //29 mins
#define SERVERREASKTIME MIN2MS(15) //15 mins - don't set this too low, it wont speed up anything, but it could kill emule or your internetconnection
#define UDPSERVERREASKTIMEMIN2MS(30) //30 mins
#define MAX_SERVERFAILCOUNT100
#define SOURCECLIENTREASKSMIN2MS(40) //40 mins
#define SOURCECLIENTREASKFMIN2MS(5) //5 mins
#define KADEMLIAASKTIME SEC2MS(1) //1 second
#define KADEMLIATOTALFILE7 //Total files to search sources for.
#define KADEMLIAREASKTIMEHR2MS(1) //1 hour
#define KADEMLIAPUBLISHTIMESEC(2)//2 second
#define KADEMLIATOTALSTORENOTES 1 //Total hashes to store.
#define KADEMLIATOTALSTORESRC 2 //Total hashes to store.
#define KADEMLIATOTALSTOREKEY 1 //Total hashes to store.
#define KADEMLIAREPUBLISHTIMES HR2S(5)//5 hours
#define KADEMLIAREPUBLISHTIMEN HR2S(24) //24 hours
#define KADEMLIAREPUBLISHTIMEK HR2S(24) //24 hours
#define KADEMLIADISCONNECTDELAY MIN2S(20) //20 mins
#define KADEMLIAMAXINDEX50000//Total keyword indexes.
#define KADEMLIAMAXENTRIES60000//Total keyword entries.
#define KADEMLIAMAXSOUCEPERFILE 300 //Max number of sources per file in index.
#define KADEMLIAMAXNOTESPERFILE 50 //Max number of notes per entry in index.
#define ED2KREPUBLISHTIMEMIN2MS(1) //1 min
#define MINCOMMONPENALTY4
#define UDPSERVERSTATTIMESEC2MS(5) //5 secs
#define UDPSERVSTATREASKTIME HR2S(4)//4 hours
#define UDPSERVERPORT 4665//default udp port
#define UDPMAXQUEUETIME SEC2MS(30) //30 Seconds
#define RSAKEYSIZE384 //384 bits
#define MAX_SOURCES_FILE_SOFT 500
#define MAX_SOURCES_FILE_UDP 50
#define SESSIONMAXTRANS (9.3*1024*1024) // 9.3 Mbytes. "Try to send complete chunks" always sends this amount of data
#define SESSIONMAXTIME HR2MS(1) //1 hour
#define MAXFILECOMMENTLEN50
这些东西你自己看着办定义吧,自己编译一个用用,不要发布出来~
可以在
opcodes.h中找到他们~