diff options
author | erdgeist <> | 2009-03-04 14:35:21 +0000 |
---|---|---|
committer | erdgeist <> | 2009-03-04 14:35:21 +0000 |
commit | 9297967f8523f1ac22bbac1823529b970a07cf56 (patch) | |
tree | 0a6bc2a2d3ac9d38e53079040c7057c779e30f15 /trackerlogic.h | |
parent | 72a1564ca14392cc2e1d044554c6e86a0eda9409 (diff) |
Add a stat option the count bucket stalls
Add an iterator for all torrents. It's slower but for stats it's okay.
Move some stats collection stuff to the new iterator. More to come.
Start a "report all stats" page.
Start fixing the code to identify "busy" networks.
Add the concept of hosts allowed to proxy.
Add a parser for the X-Forwarded-For: HTTP header.
Clean up HTTP Header handling code. (Remove some left overs of now vanished sync code).
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index 69deddd..ce3feb1 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -148,6 +148,9 @@ size_t remove_peer_from_torrent( ot_hash hash, ot_peer *peer, char *reply, PROT | |||
148 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, int amount, char *reply ); | 148 | size_t return_tcp_scrape_for_torrent( ot_hash *hash, int amount, char *reply ); |
149 | size_t return_udp_scrape_for_torrent( ot_hash hash, char *reply ); | 149 | size_t return_udp_scrape_for_torrent( ot_hash hash, char *reply ); |
150 | 150 | ||
151 | /* torrent iterator */ | ||
152 | void iterate_all_torrents( int (*for_each)( ot_torrent* torrent, uintptr_t data ), uintptr_t data ); | ||
153 | |||
151 | /* Helper, before it moves to its own object */ | 154 | /* Helper, before it moves to its own object */ |
152 | void free_peerlist( ot_peerlist *peer_list ); | 155 | void free_peerlist( ot_peerlist *peer_list ); |
153 | 156 | ||