ELinks 0.18.0
bittorrent_peer_connection Struct Reference

Peer connection information. More...

#include <common.h>

Collaboration diagram for bittorrent_peer_connection:

Public Member Functions

 LIST_HEAD_EL (struct bittorrent_peer_connection)
 

Data Fields

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.

Member Function Documentation

◆ LIST_HEAD_EL()

bittorrent_peer_connection::LIST_HEAD_EL ( struct bittorrent_peer_connection )

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.

◆ 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: