Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Code is now modular and tidy
[simgrid.git] / examples / msg / kadeploy / 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
14 #define HOSTNAME_LENGTH 20
15 #define PIECE_COUNT 1000
16
17 xbt_dynar_t build_hostlist_from_hostcount(int hostcount); 
18 /*xbt_dynar_t build_hostlist_from_argv(int argc, char *argv[]);*/
19
20 /* Broadcaster: helper functions */
21 int broadcaster_build_chain(const char **first, xbt_dynar_t host_list);
22 int broadcaster_send_file(const char *first);
23 int broadcaster_finish(xbt_dynar_t host_list);
24
25 /* Tasks */
26 int broadcaster(int argc, char *argv[]);
27
28 #endif /* KADEPLOY_BROADCASTER_H */