Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
compile new example(cherry picked from commit 9a6d1a5f9568d67edc3871161782c2cc39586637)
[simgrid.git] / examples / msg / chainsend / peer.h
index 96c9fafe6ce812d78bad1261275da25662b56eaf..8ee42f774568e9c4fb774b069402d6ef26cbfd06 100644 (file)
 /* Peer struct */
 typedef struct s_peer {
   int init;
-  const char *prev;
-  const char *next;
+  char *prev;
+  char *next;
   char *me;
   int pieces;
   unsigned long long bytes;
+  xbt_dynar_t pending_recvs;
   xbt_dynar_t pending_sends;
-  int close_asap; /* TODO: unused */
+  unsigned int total_pieces;
 } s_peer_t, *peer_t;
 
 /* Peer: helper functions */