diff options
| author | erdgeist <> | 2007-03-27 16:09:03 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-03-27 16:09:03 +0000 |
| commit | 33774078ab5a3c37ded0c7cdf0324bafc690625f (patch) | |
| tree | a27c4d8e809bf5316e39aab0a7cb5f45c8aa75dd /trackerlogic.h | |
| parent | b38104b9862a57271567c3dcb7e004addbe70ffc (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.h | 12 |
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 { | |||
| 84 | int init_logic( const char * const serverdir ); | 84 | int init_logic( const char * const serverdir ); |
| 85 | void deinit_logic( void ); | 85 | void deinit_logic( void ); |
| 86 | 86 | ||
| 87 | #ifdef WANT_CLOSED_TRACKER | 87 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, SYNC_IN, SYNC_OUT }; |
| 88 | extern int g_closedtracker; | ||
| 89 | #endif | ||
| 90 | #ifdef WANT_BLACKLIST | ||
| 91 | extern int g_check_blacklist; | ||
| 92 | #endif | ||
| 93 | |||
| 94 | enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP }; | ||
| 95 | 88 | ||
| 96 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); | 89 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); |
| 90 | int add_changeset_to_tracker( ot_byte *data, size_t len ); | ||
| 97 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); | 91 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply, int is_tcp ); |
| 98 | size_t return_fullscrape_for_tracker( char **reply ); | 92 | size_t return_fullscrape_for_tracker( char **reply ); |
| 99 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply ); | 93 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply ); |
