dht协议的目的是解放tracter服务器,将tracter的任务分布式存到各个客户端上(即维护资源文件的下载列表,从哪能下载到请求的文件);
dht协议在get_peer请求获得peer信息后,就会通过announce_peer通知之前的客户端:我当前也是这个文件的peer,通报自己的ip和下载文件的port(tcp);
peer wire协议。用于peer和peer之间对等通信;
一个peer想下载文件,可以通过tracoer或者dht获得当前持有该文件的peer信息。然后进行handshake;
The intention of this protocol is to provide a simple and thin transport for extensions to the bittorrent protocol. Supporting this protocol makes it easy to add new extensions without interfering with the standard bittorrent protocol or clients that don't support this extension or the one you want to add.
这个协议是提供一个简单