Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deployment file generator in Ruby, takes a platform file, parses hostnames and output...
[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 #include "common.h"
14
15 #define PIECE_COUNT 50
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, xbt_dynar_iterator_t it);
22 int broadcaster_send_file(const char *first);
23 int broadcaster_finish(xbt_dynar_iterator_t it);
24
25 /* Tasks */
26 int broadcaster(int argc, char *argv[]);
27
28 #endif /* KADEPLOY_BROADCASTER_H */