diff options
author | erdgeist <> | 2007-01-26 16:26:49 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-26 16:26:49 +0000 |
commit | 05420c40e5b1660bcd9b72868b6e2a23672048ba (patch) | |
tree | a510cbd8fa33e97f383b44b92b019c7fde421304 /trackerlogic.h | |
parent | dffea5da69b19c6812700839885c9997e73db7ec (diff) |
Introduce another unspec'd command: sync which syncs the most recent peer pool for a torrent out. Do some variable type clean up. Do some code structure clean up.
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index 8a61b74..083c437 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -64,7 +64,7 @@ static const ot_byte PEER_FLAG_STOPPED = 0x20; | |||
64 | typedef struct { | 64 | typedef struct { |
65 | ot_time base; | 65 | ot_time base; |
66 | size_t seed_count[ OT_POOLS_COUNT ]; | 66 | size_t seed_count[ OT_POOLS_COUNT ]; |
67 | unsigned int downloaded; | 67 | size_t downloaded; |
68 | ot_vector peers[ OT_POOLS_COUNT ]; | 68 | ot_vector peers[ OT_POOLS_COUNT ]; |
69 | } ot_peerlist; | 69 | } ot_peerlist; |
70 | 70 | ||
@@ -77,8 +77,8 @@ typedef struct { | |||
77 | Exported functions | 77 | Exported functions |
78 | */ | 78 | */ |
79 | 79 | ||
80 | int init_logic( char *serverdir ); | 80 | int init_logic( const char * const serverdir ); |
81 | void deinit_logic( ); | 81 | void deinit_logic( void ); |
82 | 82 | ||
83 | #ifdef WANT_CLOSED_TRACKER | 83 | #ifdef WANT_CLOSED_TRACKER |
84 | extern int g_closedtracker; | 84 | extern int g_closedtracker; |
@@ -90,9 +90,10 @@ extern int g_check_blacklist; | |||
90 | enum { STATS_MRTG, STATS_TOP5 }; | 90 | enum { STATS_MRTG, STATS_TOP5 }; |
91 | 91 | ||
92 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); | 92 | ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); |
93 | size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply ); | 93 | size_t return_peers_for_torrent( ot_torrent *torrent, size_t amount, char *reply ); |
94 | size_t return_fullscrape_for_tracker( char **reply ); | 94 | size_t return_fullscrape_for_tracker( char **reply ); |
95 | size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); | 95 | size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); |
96 | size_t return_sync_for_torrent( ot_hash *hash, char **reply ); | ||
96 | size_t return_stats_for_tracker( char *reply, int mode ); | 97 | size_t return_stats_for_tracker( char *reply, int mode ); |
97 | void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); | 98 | void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); |
98 | 99 | ||