summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 8fcf66e..cb67244 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -87,7 +87,7 @@ void deinit_logic( void );
87enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, SYNC_IN, SYNC_OUT }; 87enum { STATS_MRTG, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, SYNC_IN, SYNC_OUT };
88 88
89ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ); 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 ); 90size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, int is_tcp );
91size_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 );
92size_t return_fullscrape_for_tracker( char **reply ); 92size_t return_fullscrape_for_tracker( char **reply );
93size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply ); 93size_t return_tcp_scrape_for_torrent( ot_hash *hash, char *reply );
@@ -96,8 +96,9 @@ size_t return_stats_for_tracker( char *reply, int mode );
96size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh ); 96size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh );
97size_t return_memstat_for_tracker( char **reply ); 97size_t return_memstat_for_tracker( char **reply );
98size_t return_changeset_for_tracker( char **reply ); 98size_t return_changeset_for_tracker( char **reply );
99int add_changeset_to_tracker( ot_byte *data, size_t len );
99void clean_all_torrents( void ); 100void clean_all_torrents( void );
100void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); 101
101#if defined ( WANT_BLACKLISTING ) || defined ( WANT_CLOSED_TRACKER ) 102#if defined ( WANT_BLACKLISTING ) || defined ( WANT_CLOSED_TRACKER )
102int accesslist_addentry( ot_hash *hash ); 103int accesslist_addentry( ot_hash *hash );
103void accesslist_reset( void ); 104void accesslist_reset( void );