ELinks 0.16.1.1
bittorrent_peer_connection Struct Reference

Peer connection information. More...

#include <common.h>

Collaboration diagram for bittorrent_peer_connection:

Data Fields

void * magic1
struct bittorrent_peer_connectionnext
struct bittorrent_peer_connectionprev
void * magic2
bittorrent_id_T id
 Unique peer ID string which can be used to look-up the peer hash.
timer_id_T timer
 Timer handle for scheduling timeouts.
struct socketsocket
 Socket information.
struct bittorrent_peer_stats stats
 Progress information and counter for the number of uploaded or downloaded bytes depending on the mode.
struct bittorrent_connectionbittorrent
 The BitTorrent connection the peer connection is associated with.
struct bittorrent_peer_status local
 Local client and remote peer status info.
struct bittorrent_peer_status remote
struct bittorrent_peer_request list queue
 Outgoing message queue.
struct bitfieldbitfield
 A bitfield of the available pieces from the peer.

Detailed Description

Peer connection information.

Field Documentation

◆ bitfield

struct bitfield* bittorrent_peer_connection::bitfield

A bitfield of the available pieces from the peer.

The size depends on the number of pieces.

◆ bittorrent

struct bittorrent_connection* bittorrent_peer_connection::bittorrent

The BitTorrent connection the peer connection is associated with.

For recently accepted peer connections it might be NULL indicating that the info_hash has not yet been read from the handshake.

◆ id

bittorrent_id_T bittorrent_peer_connection::id

Unique peer ID string which can be used to look-up the peer hash.

◆ local

struct bittorrent_peer_status bittorrent_peer_connection::local

Local client and remote peer status info.

◆ magic1

void* bittorrent_peer_connection::magic1

◆ magic2

void* bittorrent_peer_connection::magic2

◆ next

struct bittorrent_peer_connection* bittorrent_peer_connection::next

◆ prev

struct bittorrent_peer_connection* bittorrent_peer_connection::prev

◆ queue

struct bittorrent_peer_request list bittorrent_peer_connection::queue

Outgoing message queue.

Note piece messages are maintained entirely in the request list in the bittorrent_peer_status struct.

◆ remote

struct bittorrent_peer_status bittorrent_peer_connection::remote

◆ socket

struct socket* bittorrent_peer_connection::socket

Socket information.

◆ stats

struct bittorrent_peer_stats bittorrent_peer_connection::stats

Progress information and counter for the number of uploaded or downloaded bytes depending on the mode.

◆ timer

timer_id_T bittorrent_peer_connection::timer

Timer handle for scheduling timeouts.


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