|
43 | 43 | //!
|
44 | 44 | //! Parameter | Type | Description | Required | Default | Example
|
45 | 45 | //! ---|---|---|---|---|---
|
46 |
| -//! [`info_hash`](crate::servers::http::v1::requests::announce::Announce::info_hash) | percent encoded of 20-byte array | The `Info Hash` of the torrent. | Yes | No | `%81%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00` |
| 46 | +//! [`info_hash`](bittorrent_http_protocol::v1::requests::announce::Announce::info_hash) | percent encoded of 20-byte array | The `Info Hash` of the torrent. | Yes | No | `%81%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00` |
47 | 47 | //! `peer_addr` | string |The IP address of the peer. | No | No | `2.137.87.41`
|
48 |
| -//! [`downloaded`](crate::servers::http::v1::requests::announce::Announce::downloaded) | positive integer |The number of bytes downloaded by the peer. | No | `0` | `0` |
49 |
| -//! [`uploaded`](crate::servers::http::v1::requests::announce::Announce::uploaded) | positive integer | The number of bytes uploaded by the peer. | No | `0` | `0` |
50 |
| -//! [`peer_id`](crate::servers::http::v1::requests::announce::Announce::peer_id) | percent encoded of 20-byte array | The ID of the peer. | Yes | No | `-qB00000000000000001` |
51 |
| -//! [`port`](crate::servers::http::v1::requests::announce::Announce::port) | positive integer | The port used by the peer. | Yes | No | `17548` |
52 |
| -//! [`left`](crate::servers::http::v1::requests::announce::Announce::left) | positive integer | The number of bytes pending to download. | No | `0` | `0` |
53 |
| -//! [`event`](crate::servers::http::v1::requests::announce::Announce::event) | positive integer | The event that triggered the `Announce` request: `started`, `completed`, `stopped` | No | `None` | `completed` |
54 |
| -//! [`compact`](crate::servers::http::v1::requests::announce::Announce::compact) | `0` or `1` | Whether the tracker should return a compact peer list. | No | `None` | `0` |
| 48 | +//! [`downloaded`](bittorrent_http_protocol::v1::requests::announce::Announce::downloaded) | positive integer |The number of bytes downloaded by the peer. | No | `0` | `0` |
| 49 | +//! [`uploaded`](bittorrent_http_protocol::v1::requests::announce::Announce::uploaded) | positive integer | The number of bytes uploaded by the peer. | No | `0` | `0` |
| 50 | +//! [`peer_id`](bittorrent_http_protocol::v1::requests::announce::Announce::peer_id) | percent encoded of 20-byte array | The ID of the peer. | Yes | No | `-qB00000000000000001` |
| 51 | +//! [`port`](bittorrent_http_protocol::v1::requests::announce::Announce::port) | positive integer | The port used by the peer. | Yes | No | `17548` |
| 52 | +//! [`left`](bittorrent_http_protocol::v1::requests::announce::Announce::left) | positive integer | The number of bytes pending to download. | No | `0` | `0` |
| 53 | +//! [`event`](bittorrent_http_protocol::v1::requests::announce::Announce::event) | positive integer | The event that triggered the `Announce` request: `started`, `completed`, `stopped` | No | `None` | `completed` |
| 54 | +//! [`compact`](bittorrent_http_protocol::v1::requests::announce::Announce::compact) | `0` or `1` | Whether the tracker should return a compact peer list. | No | `None` | `0` |
55 | 55 | //! `numwant` | positive integer | **Not implemented**. The maximum number of peers you want in the reply. | No | `50` | `50`
|
56 | 56 | //!
|
57 |
| -//! Refer to the [`Announce`](crate::servers::http::v1::requests::announce::Announce) |
| 57 | +//! Refer to the [`Announce`](bittorrent_http_protocol::v1::requests::announce::Announce) |
58 | 58 | //! request for more information about the parameters.
|
59 | 59 | //!
|
60 | 60 | //! > **NOTICE**: the [BEP 03](https://www.bittorrent.org/beps/bep_0003.html)
|
|
152 | 152 | //! 000000f0: 65 e
|
153 | 153 | //! ```
|
154 | 154 | //!
|
155 |
| -//! Refer to the [`Normal`](crate::servers::http::v1::responses::announce::Normal), i.e. `Non-Compact` |
| 155 | +//! Refer to the [`Normal`](bittorrent_http_protocol::v1::responses::announce::Normal), i.e. `Non-Compact` |
156 | 156 | //! response for more information about the response.
|
157 | 157 | //!
|
158 | 158 | //! **Sample compact response**
|
|
190 | 190 | //! 0000070: 7065 pe
|
191 | 191 | //! ```
|
192 | 192 | //!
|
193 |
| -//! Refer to the [`Compact`](crate::servers::http::v1::responses::announce::Compact) |
| 193 | +//! Refer to the [`Compact`](bittorrent_http_protocol::v1::responses::announce::Compact) |
194 | 194 | //! response for more information about the response.
|
195 | 195 | //!
|
196 | 196 | //! **Protocol**
|
|
220 | 220 | //!
|
221 | 221 | //! Parameter | Type | Description | Required | Default | Example
|
222 | 222 | //! ---|---|---|---|---|---
|
223 |
| -//! [`info_hash`](crate::servers::http::v1::requests::scrape::Scrape::info_hashes) | percent encoded of 20-byte array | The `Info Hash` of the torrent. | Yes | No | `%81%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00` |
| 223 | +//! [`info_hash`](bittorrent_http_protocol::v1::requests::scrape::Scrape::info_hashes) | percent encoded of 20-byte array | The `Info Hash` of the torrent. | Yes | No | `%81%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00` |
224 | 224 | //!
|
225 | 225 | //! > **NOTICE**: you can scrape multiple torrents at the same time by passing
|
226 | 226 | //! > multiple `info_hash` parameters.
|
227 | 227 | //!
|
228 |
| -//! Refer to the [`Scrape`](crate::servers::http::v1::requests::scrape::Scrape) |
| 228 | +//! Refer to the [`Scrape`](bittorrent_http_protocol::v1::requests::scrape::Scrape) |
229 | 229 | //! request for more information about the parameters.
|
230 | 230 | //!
|
231 | 231 | //! **Sample scrape URL**
|
|
0 commit comments