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

Data Structures

struct  bittorrent_piece_cache_entry
struct  bittorrent_piece_cache

Functions

enum bittorrent_state init_bittorrent_piece_cache (struct bittorrent_connection *bittorrent, struct bittorrent_const_string *metafile)
void done_bittorrent_piece_cache (struct bittorrent_connection *bittorrent)
void update_bittorrent_piece_cache_state (struct bittorrent_connection *bittorrent)
struct bittorrent_peer_requestfind_bittorrent_peer_request (struct bittorrent_peer_connection *peer)
void add_requests_to_bittorrent_piece_cache (struct bittorrent_peer_connection *peer, struct bittorrent_peer_status *status)
void update_bittorrent_piece_cache (struct bittorrent_peer_connection *peer, uint32_t piece)
void update_bittorrent_piece_cache_from_bitfield (struct bittorrent_peer_connection *peer)
void remove_bittorrent_peer_from_piece_cache (struct bittorrent_peer_connection *peer)
enum bittorrent_state add_to_bittorrent_piece_cache (struct bittorrent_peer_connection *peer, uint32_t piece, uint32_t offset, char *data, uint32_t datalen, int *write_errno)
char * get_bittorrent_piece_cache_data (struct bittorrent_connection *bittorrent, uint32_t piece)

Function Documentation

◆ add_requests_to_bittorrent_piece_cache()

void add_requests_to_bittorrent_piece_cache ( struct bittorrent_peer_connection * peer,
struct bittorrent_peer_status * status )

◆ add_to_bittorrent_piece_cache()

enum bittorrent_state add_to_bittorrent_piece_cache ( struct bittorrent_peer_connection * peer,
uint32_t piece,
uint32_t offset,
char * data,
uint32_t datalen,
int * write_errno )

◆ done_bittorrent_piece_cache()

void done_bittorrent_piece_cache ( struct bittorrent_connection * bittorrent)

◆ find_bittorrent_peer_request()

struct bittorrent_peer_request * find_bittorrent_peer_request ( struct bittorrent_peer_connection * peer)

◆ get_bittorrent_piece_cache_data()

char * get_bittorrent_piece_cache_data ( struct bittorrent_connection * bittorrent,
uint32_t piece )

◆ init_bittorrent_piece_cache()

enum bittorrent_state init_bittorrent_piece_cache ( struct bittorrent_connection * bittorrent,
struct bittorrent_const_string * metafile )

◆ remove_bittorrent_peer_from_piece_cache()

void remove_bittorrent_peer_from_piece_cache ( struct bittorrent_peer_connection * peer)

◆ update_bittorrent_piece_cache()

void update_bittorrent_piece_cache ( struct bittorrent_peer_connection * peer,
uint32_t piece )

◆ update_bittorrent_piece_cache_from_bitfield()

void update_bittorrent_piece_cache_from_bitfield ( struct bittorrent_peer_connection * peer)

◆ update_bittorrent_piece_cache_state()

void update_bittorrent_piece_cache_state ( struct bittorrent_connection * bittorrent)