ELinks 0.18.0
|
This stores info about an active BitTorrent connection. More...
#include <common.h>
Public Member Functions | |
LIST_HEAD_EL (struct bittorrent_connection) | |
Data Fields | |
enum bittorrent_connection_mode | mode |
struct bittorrent_meta | meta |
Static information from the .torrent metafile. | |
struct bittorrent_tracker_connection | tracker |
Dynamic tracker information. | |
struct bittorrent_piece_cache * | cache |
Dynamic tracker information. | |
struct connection * | conn |
Back-reference to the connection the bittorrent connection belongs to. | |
struct bittorrent_peer_connection list | peers |
Active peer list The size is controlled by the protocol.bittorrent.max_active_peers option. | |
struct bittorrent_peer list | peer_pool |
List of information about potential peers. | |
bittorrent_id_T | peer_id |
The peer ID of the client. | |
uint16_t | port |
The port of the listening socket. | |
timer_id_T | timer |
Timer handle for scheduling periodic updating and rating of peer connections. | |
struct progress | upload_progress |
Statistics for the tracker and total progress information for the user interface. | |
off_t | uploaded |
off_t | downloaded |
off_t | left |
uint32_t | complete |
Number of seeders. | |
uint32_t | incomplete |
Number of leechers. | |
double | sharing_rate |
struct bittorrent_fetcher * | fetch |
Information about any running metainfo file or tracker request. | |
struct terminal * | term |
For notifying on completion. | |
This stores info about an active BitTorrent connection.
Note, the list head is used by the handling of the peer-wire listening socket and should only be managed by that.
bittorrent_connection::LIST_HEAD_EL | ( | struct bittorrent_connection | ) |
struct bittorrent_piece_cache* bittorrent_connection::cache |
Dynamic tracker information.
uint32_t bittorrent_connection::complete |
Number of seeders.
struct connection* bittorrent_connection::conn |
Back-reference to the connection the bittorrent connection belongs to.
off_t bittorrent_connection::downloaded |
struct bittorrent_fetcher* bittorrent_connection::fetch |
Information about any running metainfo file or tracker request.
uint32_t bittorrent_connection::incomplete |
Number of leechers.
off_t bittorrent_connection::left |
struct bittorrent_meta bittorrent_connection::meta |
Static information from the .torrent metafile.
enum bittorrent_connection_mode bittorrent_connection::mode |
bittorrent_id_T bittorrent_connection::peer_id |
The peer ID of the client.
struct bittorrent_peer list bittorrent_connection::peer_pool |
List of information about potential peers.
struct bittorrent_peer_connection list bittorrent_connection::peers |
Active peer list The size is controlled by the protocol.bittorrent.max_active_peers option.
uint16_t bittorrent_connection::port |
The port of the listening socket.
double bittorrent_connection::sharing_rate |
struct terminal* bittorrent_connection::term |
For notifying on completion.
May be NULL.
timer_id_T bittorrent_connection::timer |
Timer handle for scheduling periodic updating and rating of peer connections.
struct bittorrent_tracker_connection bittorrent_connection::tracker |
Dynamic tracker information.
struct progress bittorrent_connection::upload_progress |
Statistics for the tracker and total progress information for the user interface.
off_t bittorrent_connection::uploaded |