diff options
Diffstat (limited to 'ot_stats.h')
-rw-r--r-- | ot_stats.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -10,13 +10,21 @@ typedef enum { | |||
10 | EVENT_CONNECT, /* UDP only */ | 10 | EVENT_CONNECT, /* UDP only */ |
11 | EVENT_ANNOUNCE, | 11 | EVENT_ANNOUNCE, |
12 | EVENT_SCRAPE, | 12 | EVENT_SCRAPE, |
13 | EVENT_FULLSCRAPE_REQUEST, | ||
14 | EVENT_FULLSCRAPE_REQUEST_GZIP, | ||
13 | EVENT_FULLSCRAPE, /* TCP only */ | 15 | EVENT_FULLSCRAPE, /* TCP only */ |
16 | EVENT_SYNC_IN_REQUEST, | ||
17 | EVENT_SYNC_IN, | ||
18 | EVENT_SYNC_OUT_REQUEST, | ||
19 | EVENT_SYNC_OUT, | ||
14 | EVENT_FAILED_400, | 20 | EVENT_FAILED_400, |
15 | EVENT_FAILED_404, | 21 | EVENT_FAILED_404, |
16 | EVENT_FAILED_505 | 22 | EVENT_FAILED_505 |
17 | } ot_status_event; | 23 | } ot_status_event; |
18 | 24 | ||
25 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); | ||
19 | size_t return_stats_for_tracker( char *reply, int mode, int format ); | 26 | size_t return_stats_for_tracker( char *reply, int mode, int format ); |
20 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); | 27 | void stats_init( ); |
28 | void stats_deinit( ); | ||
21 | 29 | ||
22 | #endif | 30 | #endif |