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
woopsie, sorry
[simgrid.git]
/
examples
/
msg
/
chainsend
/
broadcaster.h
diff --git
a/examples/msg/chainsend/broadcaster.h
b/examples/msg/chainsend/broadcaster.h
index
3760973
..
c1f9198
100644
(file)
--- a/
examples/msg/chainsend/broadcaster.h
+++ b/
examples/msg/chainsend/broadcaster.h
@@
-1,7
+1,13
@@
+/* Copyright (c) 2012-2015. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#ifndef KADEPLOY_BROADCASTER_H
#define KADEPLOY_BROADCASTER_H
#ifndef KADEPLOY_BROADCASTER_H
#define KADEPLOY_BROADCASTER_H
-#include "
msg
/msg.h"
+#include "
simgrid
/msg.h"
#include "xbt/sysdep.h"
/* Create a log channel to have nice outputs. */
#include "xbt/sysdep.h"
/* Create a log channel to have nice outputs. */
@@
-15,9
+21,9
@@
/* Connection parameters */
#define MAX_PENDING_SENDS 10
/* Connection parameters */
#define MAX_PENDING_SENDS 10
-/*
``F
ile'' details */
-#define PIECE_SIZE
16384
-#define PIECE_COUNT
50
+/*
Default values for the ``f
ile'' details */
+#define PIECE_SIZE
65536
+#define PIECE_COUNT
16384
/* Broadcaster struct */
typedef struct s_broadcaster {
/* Broadcaster struct */
typedef struct s_broadcaster {
@@
-36,8
+42,6
@@
xbt_dynar_t build_hostlist_from_hostcount(int hostcount);
broadcaster_t broadcaster_init(xbt_dynar_t host_list, unsigned int piece_count);
int broadcaster_build_chain(broadcaster_t bc);
int broadcaster_send_file(broadcaster_t bc);
broadcaster_t broadcaster_init(xbt_dynar_t host_list, unsigned int piece_count);
int broadcaster_build_chain(broadcaster_t bc);
int broadcaster_send_file(broadcaster_t bc);
-int broadcaster_finish(broadcaster_t bc);
-static void broadcaster_destroy(broadcaster_t bc);
/* Tasks */
int broadcaster(int argc, char *argv[]);
/* Tasks */
int broadcaster(int argc, char *argv[]);