ELinks 0.16.1.1
bittorrent_meta Struct Reference

Static information from the .torrent metafile. More...

#include <common.h>

Collaboration diagram for bittorrent_meta:

Data Fields

bittorrent_id_T info_hash
 The SHA1 info hash of the value of the info key from the metainfo .torrent file is used regularly when connecting to both the tracker and peers.
time_t creation_date
 Optional information about the creation time of the torrent.
char * comment
 Optional comment in free-form text.
struct uri_list tracker_uris
 The announced URI of each available tracker.
uint32_t pieces
 The number of pieces.
uint32_t piece_length
 The number of bytes in each piece.
uint32_t last_piece_length
 The last piece can be shorter than the others.
char * piece_hash
 List of concatenated SHA1 hash values for each piece.
enum meta_type type
 The type of the torrent.
unsigned int malicious_paths:1
 Potential bad file path detected.
char * name
 The name of either the single file or the top-most directory.
struct bittorrent_file list files
 A list with information about files in the torrent.

Detailed Description

Static information from the .torrent metafile.

Field Documentation

◆ comment

char* bittorrent_meta::comment

Optional comment in free-form text.

◆ creation_date

time_t bittorrent_meta::creation_date

Optional information about the creation time of the torrent.

Used if the document.download.set_original_time is true.

◆ files

struct bittorrent_file list bittorrent_meta::files

A list with information about files in the torrent.

The list is a singleton for single-file torrents.

◆ info_hash

bittorrent_id_T bittorrent_meta::info_hash

The SHA1 info hash of the value of the info key from the metainfo .torrent file is used regularly when connecting to both the tracker and peers.

◆ last_piece_length

uint32_t bittorrent_meta::last_piece_length

The last piece can be shorter than the others.

◆ malicious_paths

unsigned int bittorrent_meta::malicious_paths

Potential bad file path detected.

◆ name

char* bittorrent_meta::name

The name of either the single file or the top-most directory.

◆ piece_hash

char* bittorrent_meta::piece_hash

List of concatenated SHA1 hash values for each piece.

◆ piece_length

uint32_t bittorrent_meta::piece_length

The number of bytes in each piece.

◆ pieces

uint32_t bittorrent_meta::pieces

The number of pieces.

◆ tracker_uris

struct uri_list bittorrent_meta::tracker_uris

The announced URI of each available tracker.

◆ type

enum meta_type bittorrent_meta::type

The type of the torrent.


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