ELinks 0.18.0
peerwire.h File Reference
Include dependency graph for peerwire.h:
This graph shows which files directly or indirectly include this file:

Functions

void read_bittorrent_peer_handshake (struct socket *socket, struct read_buffer *buffer)
 
void send_bittorrent_peer_handshake (struct socket *socket)
 
void update_bittorrent_peer_connection_state (struct bittorrent_peer_connection *peer)
 
void update_bittorrent_peer_connection_stats (struct bittorrent_peer_connection *peer, uint32_t downloaded, uint32_t have_piece, uint32_t uploaded)
 
void send_bittorrent_peer_message (struct bittorrent_peer_connection *peer, bittorrent_message_id_TT message_id,...)
 
static void set_bittorrent_peer_interested (struct bittorrent_peer_connection *peer)
 
static void set_bittorrent_peer_not_interested (struct bittorrent_peer_connection *peer)
 
static void choke_bittorrent_peer (struct bittorrent_peer_connection *peer)
 
static void unchoke_bittorrent_peer (struct bittorrent_peer_connection *peer)
 
static void set_bittorrent_peer_have (struct bittorrent_peer_connection *peer, uint32_t piece)
 
static void cancel_bittorrent_peer_request (struct bittorrent_peer_connection *peer, struct bittorrent_peer_request *request)
 

Function Documentation

◆ cancel_bittorrent_peer_request()

static void cancel_bittorrent_peer_request ( struct bittorrent_peer_connection * peer,
struct bittorrent_peer_request * request )
inlinestatic

◆ choke_bittorrent_peer()

static void choke_bittorrent_peer ( struct bittorrent_peer_connection * peer)
inlinestatic

◆ read_bittorrent_peer_handshake()

void read_bittorrent_peer_handshake ( struct socket * socket,
struct read_buffer * buffer )

◆ send_bittorrent_peer_handshake()

void send_bittorrent_peer_handshake ( struct socket * socket)

◆ send_bittorrent_peer_message()

void send_bittorrent_peer_message ( struct bittorrent_peer_connection * peer,
bittorrent_message_id_TT message_id,
... )

◆ set_bittorrent_peer_have()

static void set_bittorrent_peer_have ( struct bittorrent_peer_connection * peer,
uint32_t piece )
inlinestatic

◆ set_bittorrent_peer_interested()

static void set_bittorrent_peer_interested ( struct bittorrent_peer_connection * peer)
inlinestatic

◆ set_bittorrent_peer_not_interested()

static void set_bittorrent_peer_not_interested ( struct bittorrent_peer_connection * peer)
inlinestatic

◆ unchoke_bittorrent_peer()

static void unchoke_bittorrent_peer ( struct bittorrent_peer_connection * peer)
inlinestatic

◆ update_bittorrent_peer_connection_state()

void update_bittorrent_peer_connection_state ( struct bittorrent_peer_connection * peer)

◆ update_bittorrent_peer_connection_stats()

void update_bittorrent_peer_connection_stats ( struct bittorrent_peer_connection * peer,
uint32_t downloaded,
uint32_t have_piece,
uint32_t uploaded )