From 33774078ab5a3c37ded0c7cdf0324bafc690625f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 27 Mar 2007 16:09:03 +0000 Subject: Added inbound part of sync. This also meant to remove the black/whitelisting as we did by now. A more scalable way to blacklist will follow. --- trackerlogic.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index dfd5047..4fa48eb 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -84,16 +84,10 @@ typedef struct { int init_logic( const char * const serverdir ); void deinit_logic( void ); -#ifdef WANT_CLOSED_TRACKER -extern int g_closedtracker; -#endif -#ifdef WANT_BLACKLIST -extern int g_check_blacklist; -#endif - -enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP }; +enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, SYNC_IN, SYNC_OUT }; -ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); +ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); +int add_changeset_to_tracker( ot_byte *data, size_t len ); size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); size_t return_fullscrape_for_tracker( char **reply ); size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply ); -- cgit v1.2.3