summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index dfd5047..4fa48eb 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -84,16 +84,10 @@ typedef struct {
84int init_logic( const char * const serverdir ); 84int init_logic( const char * const serverdir );
85void deinit_logic( void ); 85void deinit_logic( void );
86 86
87#ifdef WANT_CLOSED_TRACKER 87enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, SYNC_IN, SYNC_OUT };
88extern int g_closedtracker;
89#endif
90#ifdef WANT_BLACKLIST
91extern int g_check_blacklist;
92#endif
93
94enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP };
95 88
96ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); 89ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset );
90int add_changeset_to_tracker( ot_byte *data, size_t len );
97size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); 91size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp );
98size_t return_fullscrape_for_tracker( char **reply ); 92size_t return_fullscrape_for_tracker( char **reply );
99size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply ); 93size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply );