ELinks 0.16.1.1
|
Peer connection information. More...
#include <common.h>
Data Fields | |
void * | magic1 |
struct bittorrent_peer_connection * | next |
struct bittorrent_peer_connection * | prev |
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 socket * | socket |
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_connection * | bittorrent |
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 bitfield * | bitfield |
A bitfield of the available pieces from the peer. |
Peer connection information.
struct bitfield* bittorrent_peer_connection::bitfield |
A bitfield of the available pieces from the peer.
The size depends on the number of pieces.
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.
bittorrent_id_T bittorrent_peer_connection::id |
Unique peer ID string which can be used to look-up the peer hash.
struct bittorrent_peer_status bittorrent_peer_connection::local |
Local client and remote peer status info.
void* bittorrent_peer_connection::magic1 |
void* bittorrent_peer_connection::magic2 |
struct bittorrent_peer_connection* bittorrent_peer_connection::next |
struct bittorrent_peer_connection* bittorrent_peer_connection::prev |
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.
struct bittorrent_peer_status bittorrent_peer_connection::remote |
struct socket* bittorrent_peer_connection::socket |
Socket information.
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_id_T bittorrent_peer_connection::timer |
Timer handle for scheduling timeouts.