Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'hypervisor' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into hypervisor
[simgrid.git] / examples / msg / bittorrent / connection.h
index 807c709..95cfbbf 100644 (file)
@@ -15,6 +15,7 @@ typedef struct s_connection {
   int messages_count;
   double peer_speed;
   double last_unchoke;
+  int current_piece;
   int am_interested:1;          //Indicates if we are interested in something the peer has
   int interested:1;             //Indicates if the peer is interested in one of our pieces
   int choked_upload:1;          //Indicates if the peer is choked for the current peer