summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorerdgeist <>2007-03-27 16:09:03 +0000
committererdgeist <>2007-03-27 16:09:03 +0000
commit33774078ab5a3c37ded0c7cdf0324bafc690625f (patch)
treea27c4d8e809bf5316e39aab0a7cb5f45c8aa75dd /trackerlogic.h
parentb38104b9862a57271567c3dcb7e004addbe70ffc (diff)
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.
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 );