ELinks 0.16.1.1
|
The peer request matches information sent in the request and cancel messages in the peer-wire protocol. More...
#include <common.h>
Data Fields | |
void * | magic1 |
struct bittorrent_peer_request * | next |
struct bittorrent_peer_request * | prev |
void * | magic2 |
uint32_t | piece |
Zero-based piece index. | |
uint32_t | offset |
Zero-based piece byte offset. | |
uint32_t | length |
The wanted number of bytes. | |
uint16_t | block |
The block index in the piece. | |
bittorrent_message_id_T | id |
ID of queued pending message. | |
unsigned int | cloned:1 |
The request was cloned. | |
unsigned int | requested:1 |
Whether it has been requested. |
The peer request matches information sent in the request and cancel messages in the peer-wire protocol.
See the piece cache header file (cache.h) for more information about the cloned flag.
uint16_t bittorrent_peer_request::block |
The block index in the piece.
unsigned int bittorrent_peer_request::cloned |
The request was cloned.
bittorrent_message_id_T bittorrent_peer_request::id |
ID of queued pending message.
uint32_t bittorrent_peer_request::length |
The wanted number of bytes.
void* bittorrent_peer_request::magic1 |
void* bittorrent_peer_request::magic2 |
struct bittorrent_peer_request* bittorrent_peer_request::next |
uint32_t bittorrent_peer_request::offset |
Zero-based piece byte offset.
uint32_t bittorrent_peer_request::piece |
Zero-based piece index.
struct bittorrent_peer_request* bittorrent_peer_request::prev |
unsigned int bittorrent_peer_request::requested |
Whether it has been requested.