ELinks 0.16.1.1
|
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include "elinks.h"
#include "config/options.h"
#include "main/select.h"
#include "main/timer.h"
#include "network/connection.h"
#include "network/socket.h"
#include "network/state.h"
#include "osdep/osdep.h"
#include "protocol/bittorrent/common.h"
#include "protocol/bittorrent/peerwire.h"
#include "protocol/bittorrent/peerconnect.h"
#include "protocol/bittorrent/piececache.h"
#include "protocol/protocol.h"
#include "protocol/uri.h"
#include "util/bitfield.h"
#include "util/memory.h"
#include "util/string.h"
#include "util/time.h"
Macros | |
#define | LISTEN_BACKLOG get_opt_int("protocol.bittorrent.peerwire.connections", NULL) |
Variables | |
static int | bittorrent_socket = -1 |
static struct bittorrent_connection list | bittorrent_connections = { D_LIST_HEAD(bittorrent_connections) } |
static struct bittorrent_peer_connection list | bittorrent_peer_connections = { D_LIST_HEAD(bittorrent_peer_connections) } |
static struct socket_operations | bittorrent_socket_operations |
#define LISTEN_BACKLOG get_opt_int("protocol.bittorrent.peerwire.connections", NULL) |
|
static |
|
static |
|
static |
void done_bittorrent_listening_socket | ( | struct connection * | conn | ) |
void done_bittorrent_peer_connection | ( | struct bittorrent_peer_connection * | peer | ) |
|
static |
struct bittorrent_connection * find_bittorrent_connection | ( | bittorrent_id_T | info_hash | ) |
struct connection_state init_bittorrent_listening_socket | ( | struct connection * | conn | ) |
|
static |
enum bittorrent_state make_bittorrent_peer_connection | ( | struct bittorrent_connection * | bittorrent, |
struct bittorrent_peer * | peer_info ) |
|
static |
void set_bittorrent_peer_connection_timeout | ( | struct bittorrent_peer_connection * | peer | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |