1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00
elinks/src/protocol/bittorrent/connection.h
2005-10-21 09:14:07 +02:00

26 lines
607 B
C

#ifndef EL__PROTOCOL_BITTORRENT_CONNECTION_H
#define EL__PROTOCOL_BITTORRENT_CONNECTION_H
#include "protocol/protocol.h"
struct bittorrent_connection;
struct connection;
#ifdef CONFIG_BITTORRENT
extern protocol_handler_T bittorrent_protocol_handler;
#else
#define bittorrent_protocol_handler NULL
#endif
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);
void bittorrent_resume_callback(struct bittorrent_connection *bittorrent);
#endif