A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanups
[simgrid.git]
/
examples
/
c
/
app-bittorrent
/
tracker.h
diff --git
a/examples/c/app-bittorrent/tracker.h
b/examples/c/app-bittorrent/tracker.h
index
f285236
..
663f9ed
100644
(file)
--- a/
examples/c/app-bittorrent/tracker.h
+++ b/
examples/c/app-bittorrent/tracker.h
@@
-10,13
+10,7
@@
#include <xbt/dynar.h>
void tracker(int argc, char* argv[]);
#include <xbt/dynar.h>
void tracker(int argc, char* argv[]);
-/**
- * Task types exchanged between a node and the tracker
- */
-typedef enum { TRACKER_TASK_QUERY, TRACKER_TASK_ANSWER } e_tracker_task_type_t;
-/**
- * Tasks exchanged between a tracker and peers.
- */
+/** Tasks exchanged between a tracker and peers. */
typedef struct s_tracker_query {
int peer_id; // peer id
sg_mailbox_t return_mailbox; // mailbox where the tracker should answer
typedef struct s_tracker_query {
int peer_id; // peer id
sg_mailbox_t return_mailbox; // mailbox where the tracker should answer