這兩天在研究bt種子下載但是 在請求Tracker服務器的時候,服務器給我回傳了這么個資料
d8:completei1341e10:downloadedi69382e10:incompletei35e8:intervali1867e12:min intervali933e5:peers300:Ym檎酭?q日&pK日莟s夌'€ ?0誚yp?鏡?h肵Q?翦?!Si日,跫#冊ょ埲展煖日畃 ~蚹[-る日N.N娛3睌日%x佶髥?/$仍釘3[醟到Jt榐+曲?KKi咈
G籋阘E肱?曒?肵烱日v!hT薼C日^?日U袗 狚N$,$zfM煳?'JQX醖佇?A癩€?IgmlOA?l甬毴誔????請/姑濁杼,p屓詭?G?r日%殉毴昭k炙A窶?侇伨妞蔠矊!N,?nQ稕皦Te
通過決議獲取到
{"complete":1333,"downloaded":69369,"incomplete":31,"interval":1664,"min interval":832,"peers":"Xu+/vUjvv73vv73vv71V77+9NO+/ve+/ve+/vUZ277+977+977+9TEJF77+9XCM3Le+/vREr1r8YfFLvv73vv73vv73vv73DgRvvv71g77+977+9LGLvv70dfe+/vTHvv73vv71n77+9We+/ve+/vV5HZe+/ve+/ve+/vU7vv70GM++/vSxDAu+/ve+/vRrvv73RjSE077+91a3vv73vv73vv73vv73vv73vv73vv71e77+977+9VO+/ve+/ve+/ve+/ve+/vTPvv73vv71577+977+9JdGz77+977+977+977+977+977+977+977+977+977+9K0rvv73vv73vv71r77+9fC/vv73vv71hf13vv73vv70MVwdZ77+977+977+9Pgvvv73vv73v"}
然后查詢官網說peers是以網路位元組順來進行排序的,問下這個網路位元組順序是什么,然后如何轉換成標準的ip加埠,本人是用java決議的,
官網是這么說的
compact: Indicates the client accepts a compact response. The peers list is replaced by a peers string with 6 bytes per peer. The first four bytes are the host (in network byte order), the last two bytes are the port (again in network byte order). It should be noted that some trackers only support compact responses (for saving bandwidth) and refuse normal requests.
有點看不懂啥意思..
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/33553.html
標籤:網絡通信
上一篇:5G頻段劃分及頻點計算
