![](/img/trans.png)
[英]Why Does tracker server send “\x03\0\0\0r.opConnection ID missmatch.” as response message? (Bittorrent protocol)
[英]Why does tracker server NOT understand my request? (Bittorrent protocol)
我正在嘗試在C中實現Bittorent。首先,在編寫代碼片段之前,我嘗試使用Web瀏覽器將以下消息(URL)發送到跟蹤器服務器。
你可以嘗試這個URL。
http://torrent.ubuntu.com:6969/announce?
info_hash=%9b%db%bbI%f0%85%a2%d1%5d%96%ac%fa%bf%f81%06%001O%e0
&peer_id=ABCDABCDABCDABCDABCD&port=6882&downloaded=0
&uploaded=0
&left=0
&event=started
我已經從這個鏈接下載了torrent文件, 該文件名為dapper-dvd-i386.iso,並且有9bdbbb49f085a2d15d96acfabff8310600314fe0
作為SHA-1值。
但是,在發送上述請求后,我得到了
your client is outdated, please upgrade
(HTTP 400 bad request)
為什么跟蹤服務器不理解我的需求? 互聯網的任何規格都無濟於事。
任何幫助都是極好的。 先感謝您。
這是因為請求字符串中沒有compact=1
。
現在大多數跟蹤器需要。 傳統方式太無效了。
請參閱BEP 23:跟蹤器返回緊湊對等列表http://www.bittorrent.org/beps/bep_0023.html
嘗試:
http://torrent.ubuntu.com:6969/announce?
info_hash=%9b%db%bbI%f0%85%a2%d1%5d%96%ac%fa%bf%f81%06%001O%e0
&peer_id=ABCDABCDABCDABCDABCD&port=6882&downloaded=0
&uploaded=0
&left=0
&event=started
&compact=1
即
http://torrent.ubuntu.com:6969/announce?info_hash=%9b%db%bbI%f0%85%a2%d1%5d%96%ac%fa%bf%f81%06%001O%e0&peer_id=ABCDABCDABCDABCDABCD&port=6882&downloaded=0&uploaded=0&left=0&event=started&compact=1
並且跟蹤器的答案是:
d8:completei4e10:incompletei0e8:intervali1800e5:peers6:******e
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.