ELinks 0.18.0
Functions
connection.c File Reference
#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"
Include dependency graph for connection.c:

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)
 

Function Documentation

◆ bittorrent_metainfo_callback()

static void bittorrent_metainfo_callback ( void *  data,
struct connection_state  state,
struct bittorrent_const_string *  response 
)
static

◆ bittorrent_peer_protocol_handler()

void bittorrent_peer_protocol_handler ( struct connection *  conn)

◆ bittorrent_protocol_handler()

void bittorrent_protocol_handler ( struct connection *  conn)

◆ bittorrent_resume_callback()

void bittorrent_resume_callback ( struct bittorrent_connection *  bittorrent)

◆ done_bittorrent_connection()

static void done_bittorrent_connection ( struct connection *  conn)
static

◆ init_bittorrent_connection()

static struct bittorrent_connection * init_bittorrent_connection ( struct connection *  conn)
static

◆ set_bittorrent_connection_timer()

static void set_bittorrent_connection_timer ( struct connection *  conn)
static

◆ sort_bittorrent_peer_connections()

static void sort_bittorrent_peer_connections ( struct bittorrent_connection *  bittorrent)
static

◆ update_bittorrent_connection_state()

void update_bittorrent_connection_state ( struct connection *  conn)

◆ update_bittorrent_connection_stats()

void update_bittorrent_connection_stats ( struct bittorrent_connection *  bittorrent,
off_t  downloaded,
off_t  uploaded,
off_t  received 
)

◆ update_bittorrent_connection_upload()

static void update_bittorrent_connection_upload ( void *  data)
static