Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deport three other MSG examples
[simgrid.git] / examples / msg / app-chainsend / broadcaster.h
diff --git a/examples/msg/app-chainsend/broadcaster.h b/examples/msg/app-chainsend/broadcaster.h
deleted file mode 100644 (file)
index d4413d4..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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 BROADCASTER_H
-#define BROADCASTER_H
-
-#include "xbt/dynar.h"
-#include "messages.h"
-#include "iterator.h"
-#include "common.h"
-
-/* Connection parameters */
-#define MAX_PENDING_SENDS 10
-
-/* Default values for the ``file'' details */
-#define PIECE_SIZE 65536
-#define PIECE_COUNT 16384
-
-/* Broadcaster struct */
-typedef struct s_broadcaster {
-  const char *first;
-  int piece_count;
-  int current_piece;
-  xbt_dynar_t host_list;
-  xbt_dynar_iterator_t it;
-  int max_pending_sends;
-  xbt_dynar_t pending_sends;
-} s_broadcaster_t;
-
-typedef s_broadcaster_t *broadcaster_t;
-
-xbt_dynar_t build_hostlist_from_hostcount(int hostcount); 
-
-/* Broadcaster: helper functions */
-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);
-
-/* Tasks */
-int broadcaster(int argc, char *argv[]);
-
-#endif /* BROADCASTER_H */