Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Code cleanup
[simgrid.git] / examples / msg / chainsend / broadcaster.h
1 #ifndef KADEPLOY_BROADCASTER_H
2 #define KADEPLOY_BROADCASTER_H
3
4 #include "msg/msg.h"
5 #include "xbt/sysdep.h"
6
7 /* Create a log channel to have nice outputs. */
8 #include "xbt/log.h"
9 #include "xbt/asserts.h"
10
11 #include "messages.h"
12 #include "iterator.h"
13 #include "common.h"
14
15 #define PIECE_COUNT 50
16
17 xbt_dynar_t build_hostlist_from_hostcount(int hostcount); 
18
19 /* Broadcaster: helper functions */
20 int broadcaster_build_chain(const char **first, xbt_dynar_t host_list, xbt_dynar_iterator_t it);
21 int broadcaster_send_file(const char *first);
22 int broadcaster_finish(xbt_dynar_iterator_t it);
23
24 /* Tasks */
25 int broadcaster(int argc, char *argv[]);
26
27 #endif /* KADEPLOY_BROADCASTER_H */