ELinks 0.18.0
|
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "elinks.h"
#include "cache/cache.h"
#include "config/options.h"
#include "main/timer.h"
#include "network/connection.h"
#include "network/progress.h"
#include "network/socket.h"
#include "protocol/bittorrent/bencoding.h"
#include "protocol/bittorrent/bittorrent.h"
#include "protocol/bittorrent/common.h"
#include "protocol/bittorrent/connection.h"
#include "protocol/bittorrent/tracker.h"
#include "protocol/bittorrent/peerconnect.h"
#include "protocol/bittorrent/peerwire.h"
#include "protocol/bittorrent/piececache.h"
#include "protocol/protocol.h"
#include "protocol/uri.h"
#include "session/download.h"
#include "util/bitfield.h"
#include "util/conv.h"
#include "util/memory.h"
#include "util/string.h"
#include "util/time.h"
Functions | |
static void | set_bittorrent_connection_timer (struct connection *conn) |
static void | sort_bittorrent_peer_connections (struct bittorrent_connection *bittorrent) |
void | update_bittorrent_connection_state (struct connection *conn) |
static void | update_bittorrent_connection_upload (void *data) |
void | update_bittorrent_connection_stats (struct bittorrent_connection *bittorrent, off_t downloaded, off_t uploaded, off_t received) |
static void | done_bittorrent_connection (struct connection *conn) |
static struct bittorrent_connection * | init_bittorrent_connection (struct connection *conn) |
void | bittorrent_resume_callback (struct bittorrent_connection *bittorrent) |
static void | bittorrent_metainfo_callback (void *data, struct connection_state state, struct bittorrent_const_string *response) |
void | bittorrent_protocol_handler (struct connection *conn) |
void | bittorrent_peer_protocol_handler (struct connection *conn) |
|
static |
void bittorrent_peer_protocol_handler | ( | struct connection * | conn | ) |
void bittorrent_protocol_handler | ( | struct connection * | conn | ) |
void bittorrent_resume_callback | ( | struct bittorrent_connection * | bittorrent | ) |
|
static |
|
static |
|
static |
|
static |
void update_bittorrent_connection_state | ( | struct connection * | conn | ) |
void update_bittorrent_connection_stats | ( | struct bittorrent_connection * | bittorrent, |
off_t | downloaded, | ||
off_t | uploaded, | ||
off_t | received ) |
|
static |