X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/645128cb5c244346bc2723e88da128723c327621..c83246c94a2ea53cc13a509c8f39da2c3403fc38:/examples/msg/bittorrent/tracker.h diff --git a/examples/msg/bittorrent/tracker.h b/examples/msg/bittorrent/tracker.h index b8752ad933..f4922b7ca1 100644 --- a/examples/msg/bittorrent/tracker.h +++ b/examples/msg/bittorrent/tracker.h @@ -23,24 +23,24 @@ typedef enum { * Tasks exchanged between a tracker and peers. */ typedef struct s_tracker_task_data { - e_tracker_task_type_t type; //type of the task - const char *mailbox; //mailbox where the tracker should answer - const char *issuer_host_name; //hostname, for debug purposes + e_tracker_task_type_t type; //type of the task + const char *mailbox; //mailbox where the tracker should answer + const char *issuer_host_name; //hostname, for debug purposes //Query data - int peer_id; //peer id - int uploaded; //how much the peer has already uploaded - int downloaded; //how much the peer has downloaded - int left; //how much the peer has left + int peer_id; //peer id + int uploaded; //how much the peer has already uploaded + int downloaded; //how much the peer has downloaded + int left; //how much the peer has left //Answer data - int interval; //how often the peer should contact the tracker (unused for now) - xbt_dynar_t peers; //the peer list the peer has asked for. + int interval; //how often the peer should contact the tracker (unused for now) + xbt_dynar_t peers; //the peer list the peer has asked for. } s_tracker_task_data_t, *tracker_task_data_t; tracker_task_data_t tracker_task_data_new(const char *issuer_host_name, - const char *mailbox, int peer_id, - int uploaded, int downloaded, - int left); + const char *mailbox, int peer_id, + int uploaded, int downloaded, + int left); void tracker_task_data_free(tracker_task_data_t task); int is_in_list(xbt_dynar_t peers, int id); -#endif /* BITTORRENT_TRACKER_H */ +#endif /* BITTORRENT_TRACKER_H */