ELinks 0.16.1.1
bittorrent_peer_request Struct Reference

The peer request matches information sent in the request and cancel messages in the peer-wire protocol. More...

#include <common.h>

Collaboration diagram for bittorrent_peer_request:

Data Fields

void * magic1
struct bittorrent_peer_requestnext
struct bittorrent_peer_requestprev
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.

Detailed Description

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.

Field Documentation

◆ block

uint16_t bittorrent_peer_request::block

The block index in the piece.

◆ cloned

unsigned int bittorrent_peer_request::cloned

The request was cloned.

◆ id

bittorrent_message_id_T bittorrent_peer_request::id

ID of queued pending message.

◆ length

uint32_t bittorrent_peer_request::length

The wanted number of bytes.

◆ magic1

void* bittorrent_peer_request::magic1

◆ magic2

void* bittorrent_peer_request::magic2

◆ next

struct bittorrent_peer_request* bittorrent_peer_request::next

◆ offset

uint32_t bittorrent_peer_request::offset

Zero-based piece byte offset.

◆ piece

uint32_t bittorrent_peer_request::piece

Zero-based piece index.

◆ prev

struct bittorrent_peer_request* bittorrent_peer_request::prev

◆ requested

unsigned int bittorrent_peer_request::requested

Whether it has been requested.


The documentation for this struct was generated from the following file: