ELinks 0.18.0
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>

Public Member Functions

 LIST_HEAD_EL (struct bittorrent_peer_request)

Data Fields

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.

Member Function Documentation

◆ LIST_HEAD_EL()

bittorrent_peer_request::LIST_HEAD_EL ( struct bittorrent_peer_request )

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.

◆ offset

uint32_t bittorrent_peer_request::offset

Zero-based piece byte offset.

◆ piece

uint32_t bittorrent_peer_request::piece

Zero-based piece index.

◆ requested

unsigned int bittorrent_peer_request::requested

Whether it has been requested.


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