亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? kadc.txt

?? p2p類源代碼 kadc協議官方源代碼
?? TXT
?? 第 1 頁 / 共 3 頁
字號:
<<< OVERNET_SEARCH_RESULT(MD4(paolo), MD4(file2), MetaTagList(attr(file2))) <<<
[...]
<<< OVERNET_SEARCH_RESULT(MD4(paolo), MD4(fileN), MetaTagList(attr(fileN))) <<<
<<< OVERNET_SEARCH_END(MD4(paolo), nsent, navailable) <<<

Once the user decides to download file 2, to get source location information:

>>> OVERNET_SEARCH(MD4(file2)) >>>
<<< OVERNET_SEARCH_NEXT(list of suggested peers)

and, to peers suggesting themselves:

>>> OVERNET_SEARCH_INFO(MD4(file2))
<<< OVERNET_SEARCH_RESULT(MD4(file2), RelHASH, MetaTagList(attr(fileN))) <<<
<<< OVERNET_SEARCH_RESULT(MD4(file2), RelHASH, MetaTagList(attr(fileN))) <<<
<<< OVERNET_SEARCH_RESULT(MD4(file2), RelHASH, MetaTagList(attr(fileN))) <<<
<<< OVERNET_SEARCH_END(MD4(file2), nsent, navailable) <<<

and the MetaTag list in this case is made of a single tag of type "string", name "loc" and value "bcp://....".

01 00 00 00: this list only has one tag
02: tag type 2, EDONKEY_MTAG_STRING (a pair <string name, string value>)
03 00: a three-character string follows:
6c 6f 63: 'loc'
39 00: a 0x39 (57)-character string follows
...: "bcp://24352535278...:81.190.41.198:7527"


**** EXAMPLES OF SEARCH FILTERS

Here are two exaples of the search filters that may be specified in OVERNET_SEARCH_INFO packets after setting the parameter byte to 0x01:

/* OP AND(OP AND(OP AND ("file", Type="audio"), Size>=1234), Size<=5678) */
unsigned char sf1[] = {
	EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
		EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
			EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
				EDONKEY_SEARCH_NAME,	/* = 01 */
				4, 0,					/* 4-byte value follows */
				'f', 'i', 'l', 'e',		/* keyword's value is "file" */

				EDONKEY_SEARCH_META,	/* = 02 */
				05, 00,					/* 5-byte value follows */
				'a', 'u', 'd', 'i', 'o', /* value is "audio" */
				1, 0,					/* 1-byte tagname follows */
				EDONKEY_STAG_TYPE,	/* = 03 */

			EDONKEY_SEARCH_LIMIT,		/* = 03, numeric limit follows */
			0xd2, 0x04, 0x00, 0x00,		/* limit is 0x4d2 = 1234 */
			EDONKEY_SEARCH_MIN,			/* = 01, min value */
			1, 0,						/* 1-byte tagname follows */
			EDONKEY_STAG_SIZE,			/* = 02 */


		EDONKEY_SEARCH_LIMIT,		/* = 03, numeric limit follows */
		0x2e, 0x16, 0x00, 0x00,		/* limit is 0x162e = 5678 */
		EDONKEY_SEARCH_MAX,			/* = 01, min value */
		1, 0,						/* 1-byte tagname follows */
		EDONKEY_STAG_SIZE			/* = 02 */
};

/* OP AND(OP AND(OP AND ("filename", Format="txt"), Size>=1), Size<=5678) */
unsigned char sf2[] = {
	EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
		EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
			EDONKEY_SEARCH_BOOL, EDONKEY_SEARCH_AND,
				EDONKEY_SEARCH_NAME,	/* = 01 */
				8, 0,					/* 8-byte value follows */
				'f', 'i', 'l', 'e', 'n', 'a', 'm', 'e',	/* keyword's value is "filename" */

				EDONKEY_SEARCH_META,	/* = 02 */
				3, 0,					/* 3-byte value follows */
				't', 'x', 't', 			/* value is "txt" */
				1, 0,					/* 1-byte tagname follows */
				EDONKEY_STAG_FORMAT,	/* = 03 */

			EDONKEY_SEARCH_LIMIT,		/* = 03, numeric limit follows */
			0x01, 0x00, 0x00, 0x00,		/* limit is 1 */
			EDONKEY_SEARCH_MIN,			/* = 01, min value */
			1, 0,						/* 1-byte tagname follows */
			EDONKEY_STAG_SIZE,			/* = 02 */


		EDONKEY_SEARCH_LIMIT,		/* = 03, numeric limit follows */
		0x2e, 0x16, 0x00, 0x00,		/* limit is 0x162e = 5678 */
		EDONKEY_SEARCH_MAX,			/* = 01, min value */
		1, 0,						/* 1-byte tagname follows */
		EDONKEY_STAG_SIZE			/* = 02 */
};

****** Parameter in OVERNET_SEARCH

OVERNET_SEARCH packets contain a one-byte field (between the OVERNET_MESSAGE (0xe3) and the hash to search for) the meaning of which is commonly assumed to be "find node/find value" as described in [Maymounkov-Mazieres]. Actually, all OVERNET_SEARCH are "find node" operations (they don't stop as soon as data is found), and the parameter seems instead to be related to the purpose of the search. In particular:

   Search for loc or metadata: uses only 0x02
   Publishing:                 uses only 0x04
   Lookup for its own hash:    uses only 0x14

The lookup for own hash is probably done to refresh the k-bucket array with low-distance neighbours (recommended as part of the boot-up procedure at the end of section 2.3 of [Maymounkov-Mazieres]). Overnet, eMuleKAD and RevConnectKAD also have a separate boot mechanism making use of OVERNET_CONNECT / OVERNET_CONNECT_REPLY sessions.

****** On NATting firewalling

There are a few possible meaning of a node "being firewalled". The most common is that its TCP port in not accessible from an external TCP client, usually depending on dynamic Network Address Translation. A node can check if this is the case by issuing an OVERNET_IP_QUERY request to a known peer. the latter will reply immediately with a OVERNET_IP_QUERY_ANSWER, and at the same time will try to open a TCP connection to the TCP port declared in the OVERNET_IP_QUERY packet. In case of success, it will also send a OVERNET_IP_QUERY_END; otherwise, it won't. The initiating peer may use this to infer whether its TCP port was accessible. As TCP access is a purely auxiliary functionality, unrelated to the DHT function, having the TCP port firewalled does not seriously impact the applicability of this library.

A second meaning of a node "being firewalled" is its inability to receive on its UDP port datagrams sent by peers that have NOT recently received UDP packets by the node. Most of NATting devices currently in use punch a temporary "hole" for incoming UDP packets in order to allow responses sent to the same sending port. This makes it possible for a node to "reach out" and transact with any peer on the Net; however, ONLY recently-queried peers will be able to send UDP packets to that node. Here, the precise meaning of "recently" depends on the implementation of the specific NATting device, but in general it means "a few minutes ago". A node firewalled in this sense will be able to publish and retrieve metadata to/from the DHT, but will NOT be able to receive and procss "publish" or "search" commands. In other words, it will not be an "ultrapeer" or "supernode", to use Gnutella or FastTrack jargon. That won't impact its useability, but will not bring any benefit to the community because the local store won't be part of the DHT. To avoid confusion, we'll call this condition "NATted" rather than firewalled (although its initial cause could be different from NAT). A node advertising in the payload an IP address OR a UDP port different from the one contained in the UDP/IP headers shall be said to be in "leaf mode". KadC allows to be put in leaf mode even when not NATted by setting the flag "leafmode" in the KadEngine structure (pKE->leafmode = 1). In that case, outgoing packets will always declare for the sender node an IP address and a UDP port number equal to zero. 

****** The OVERNET_PEER_NOTFOUND (33, 0x21) opcode 

It appears that packets with opcode 0x21 are sent to nodes that in a OVERNET_SEARCH_NEXT had recommended a peer that turned out to be dead. The packet contains hash, IP and UDP port of the peer that had been recommended, followed by a flag which is 0 if that peer had not answered to OVERNET_SEARCH, and 0xfd in some other cases (?). Probably, the intended action for the recipient is to downgrade the peer by raising its type in both kbuckets/kspace and contacts rbt's.

****** Currently unresolved issues

What is the meaning of the two unsigned short ints after the hash in OvernetSearchResult packets?

#define OVERNET_SEARCH_RESULT               0x11  /* < <SEARCH_HASH> <FILE_HASH> <CNT4> <META>[cnt]*//* OvernetSearchResult in mldonkey */
/* the two ushorts are listed by OvernetClc:
> s fat day -Audio
> Got results. (2650,2650)
  Got results. (4564,4564)
Meaning?? */

---------

Which use should a receiving peer make of the previously mentioned parameter in OVERNET_SEARCH (0x02, 0x04 or 0x14)?

---------


****** Appendix - Values of constants used by different flavours of Kademlia, and structure of various packet types 

---------

/* eMule KAD */
#define OP_KADEMLIAHEADER		0xE4
#define OP_KADEMLIAPACKEDPROT	0xE5

#define KADEMLIA_BOOTSTRAP_REQ	0x00	/* <PEER (sender) [25]>				*/
#define KADEMLIA_BOOTSTRAP_RES	0x08	/* <CNT [2]> <PEER [25]>*(CNT)		*/
#define KADEMLIA_HELLO_REQ	 	0x10	/* <PEER (sender) [25]>				*/
#define KADEMLIA_HELLO_RES     	0x18	/* <PEER (reciever) [25]>			*/
#define KADEMLIA_FIREWALLED_REQ	0x50	/* <TCPPORT (sender) [2]>			*/
#define KADEMLIA_FIREWALLED_RES	0x58	/* <IP (sender) [4]>				*/
#define KADEMLIA_FIREWALLED_ACK	0x59	/* (null) (sent if TCP connection to the declared port did actually succeed)	*/
#define KADEMLIA_REQ		   	0x20	/* <TYPE [1]> <HASH (target) [16]> <HASH (reciever) 16> */
#define KADEMLIA_RES			0x28	/* <HASH (target) [16]> <CNT> <PEER [25]>*(CNT) */
#define KADEMLIA_SEARCH_REQ		0x30	/* <HASH (key) [16]> <ext 0/1 [1]> <SEARCH_TREE>[ext] */
#define KADEMLIA_SEARCH_RES		0x38	/* <HASH (key) [16]> <CNT1 [2]> (<HASH (answer) [16]> <CNT2 [2]> <META>*(CNT2))*(CNT1) */
#define KADEMLIA_PUBLISH_REQ	0x40	/* <HASH (key) [16]> <CNT1 [2]> (<HASH (target) [16]> <CNT2 [2]> <META>*(CNT2))*(CNT1) */
#define KADEMLIA_PUBLISH_RES	0x48	/* <HASH (key) [16]>				*/
#define KADEMLIA_BUDDY_REQ		0x51	/* <TCPPORT (sender) [2]>			*/
#define KADEMLIA_BUDDY_CON		0x52	/* 									*/
#define KADEMLIA_BUDDY_ACK		0x57	/* <TCPPORT (sender) [2]>			*/

/* KADEMLIA (parameter for KADEMLIA_REQ)
   note: the three most sign. bits are reserved for future flags */
#define KADEMLIA_FIND_VALUE		0x02
#define KADEMLIA_STORE			0x04
#define KADEMLIA_FIND_NODE		0x0B

/***************************************************************************/

/* RevConnect */
#define OP_REVCONNHEADER		0xD0

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产二区国产一区在线观看| 裸体在线国模精品偷拍| 精品对白一区国产伦| 51精品国自产在线| 91精品国产色综合久久久蜜香臀| 欧美三区在线视频| 欧美另类一区二区三区| 欧美一区二区三区精品| 欧美精品久久久久久久久老牛影院| 91黄色免费版| 3d成人动漫网站| 日韩欧美一级特黄在线播放| 精品福利在线导航| 国产精品系列在线| 国产精品传媒视频| 亚洲狠狠爱一区二区三区| 亚洲观看高清完整版在线观看| 午夜精品福利久久久| 免费在线成人网| 国产精品1024| 色综合久久综合中文综合网| 欧美嫩在线观看| 欧美成人三级在线| 久久九九全国免费| 国产女同性恋一区二区| 亚洲理论在线观看| 久久精品国产亚洲aⅴ| 成人高清伦理免费影院在线观看| 色老汉av一区二区三区| 欧美一区二区三区视频| 国产精品乱码人人做人人爱| 亚洲国产毛片aaaaa无费看 | 国产不卡视频在线观看| 9色porny自拍视频一区二区| 欧美精品自拍偷拍动漫精品| 337p日本欧洲亚洲大胆精品| 一区二区三区欧美日| 精品一区二区成人精品| 色哦色哦哦色天天综合| 2020国产精品自拍| 午夜精品aaa| av午夜一区麻豆| 精品久久久久av影院| 亚洲女与黑人做爰| 国产福利一区二区| 欧美一区中文字幕| 亚洲综合偷拍欧美一区色| 国产成人精品综合在线观看| 91精品午夜视频| 一区二区三区欧美亚洲| 国产精品996| 日韩欧美国产系列| 亚洲一二三四在线| 99免费精品在线| 国产欧美一区二区三区在线看蜜臀| 婷婷亚洲久悠悠色悠在线播放| av男人天堂一区| 国产午夜精品一区二区三区视频| 奇米影视一区二区三区| 欧美曰成人黄网| 亚洲男人的天堂在线aⅴ视频| 国产成人在线网站| 久久这里只有精品6| 麻豆精品一区二区三区| 欧美一卡二卡在线| 日韩精品色哟哟| 正在播放亚洲一区| 午夜精品视频一区| 欧美色涩在线第一页| 一区二区三区欧美日| 色哟哟国产精品| 亚洲精品乱码久久久久久黑人 | 正在播放亚洲一区| 无吗不卡中文字幕| 欧美三级电影精品| 亚洲国产日韩一级| 欧美三级视频在线观看| 亚洲午夜羞羞片| 欧美日韩国产综合视频在线观看| 亚洲午夜在线观看视频在线| 欧洲国内综合视频| 亚洲成人av中文| 91精品国产高清一区二区三区蜜臀 | 9人人澡人人爽人人精品| 国产精品福利影院| 色综合久久久久综合99| 亚洲精品国产高清久久伦理二区| 色又黄又爽网站www久久| 一级日本不卡的影视| 在线成人av影院| 精品一区二区在线免费观看| 久久精品亚洲乱码伦伦中文| 97超碰欧美中文字幕| 亚洲综合在线电影| 在线成人小视频| 国产福利视频一区二区三区| 国产精品久久久久久久久免费桃花 | 国产成人精品三级| 国产精品免费网站在线观看| 色中色一区二区| 日韩激情视频在线观看| 国产亚洲一区二区三区在线观看| 国产成人午夜片在线观看高清观看| 中文字幕一区二区三区在线不卡 | 精品免费一区二区三区| 国产激情精品久久久第一区二区 | 亚洲色图色小说| 555www色欧美视频| 成人app在线| 秋霞午夜av一区二区三区| 中文字幕精品三区| 欧美三级电影在线观看| 国产成人精品影视| 亚洲狠狠爱一区二区三区| 久久久久9999亚洲精品| 91黄色免费观看| 国产盗摄女厕一区二区三区| 亚洲综合丝袜美腿| 亚洲国产激情av| 日韩一区二区电影在线| 色综合久久久久久久| 国产综合一区二区| 亚洲一区二区三区四区中文字幕| 精品处破学生在线二十三| 欧美三级乱人伦电影| 91视视频在线观看入口直接观看www | 日日摸夜夜添夜夜添亚洲女人| 国产欧美一区视频| 日韩精品一区二区在线观看| 91久久香蕉国产日韩欧美9色| 国产精品99久久久久久似苏梦涵| 日日夜夜精品视频免费| 成人欧美一区二区三区1314| 精品国产一区二区三区av性色| 欧美性做爰猛烈叫床潮| 97久久精品人人做人人爽50路| 国产乱妇无码大片在线观看| 日韩av一级片| 亚洲va欧美va国产va天堂影院| 国产精品久久久久一区二区三区 | 一区二区三区在线免费播放| 欧美高清在线一区| 久久精品亚洲国产奇米99| 91精品综合久久久久久| 欧美女孩性生活视频| 欧美性生活一区| 91国产视频在线观看| 色菇凉天天综合网| 97精品国产露脸对白| 色综合亚洲欧洲| 日本精品一级二级| 色哟哟国产精品| 91福利社在线观看| 欧美性受xxxx| 7777精品伊人久久久大香线蕉| 欧美日韩亚洲综合在线| 欧美日韩免费一区二区三区视频| 欧美亚洲丝袜传媒另类| 欧美日韩小视频| 欧美一区二区三区视频在线观看 | 91丝袜美腿高跟国产极品老师| 成人国产视频在线观看| 成人av在线播放网站| 99精品国产99久久久久久白柏 | 亚洲一区二区3| 丝袜美腿一区二区三区| 蜜臀久久99精品久久久久久9| 老司机免费视频一区二区三区| 国内精品久久久久影院一蜜桃| 国产成人精品亚洲日本在线桃色 | 狠狠v欧美v日韩v亚洲ⅴ| 另类欧美日韩国产在线| 国产成人av电影免费在线观看| 99久久er热在这里只有精品66| 欧美在线免费播放| 欧美一级黄色大片| 中文字幕精品三区| 亚洲一区二区影院| 九一久久久久久| www.在线欧美| 欧美电影影音先锋| 中文一区在线播放| 亚洲超碰精品一区二区| 国产麻豆精品95视频| 色嗨嗨av一区二区三区| 精品日韩一区二区| 国产精品天天摸av网| 亚洲大型综合色站| 国产精品一二三| 欧美丝袜丝交足nylons图片| 26uuu色噜噜精品一区二区| 亚洲精品中文在线观看| 捆绑紧缚一区二区三区视频| 91在线一区二区三区| 欧美一区二区三区爱爱| 国产精品美女久久久久久久久久久| 亚洲成人精品影院| 不卡一区二区三区四区| 欧美xxxxxxxxx| 亚洲一区二区三区四区五区黄 |