X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..a0c5b1ab11469128ad826610f54b1f0f332bd172:/examples/msg/app-bittorrent/connection.h diff --git a/examples/msg/app-bittorrent/connection.h b/examples/msg/app-bittorrent/connection.h index 30e6ba4774..cd3362014f 100644 --- a/examples/msg/app-bittorrent/connection.h +++ b/examples/msg/app-bittorrent/connection.h @@ -10,7 +10,7 @@ /** Contains the connection data of a peer. */ typedef struct s_connection { int id; //Peer id - char *bitfield; //Fields + unsigned int bitfield; //Fields char *mailbox; int messages_count; double peer_speed; @@ -35,4 +35,5 @@ connection_t connection_new(int id); void connection_add_speed_value(connection_t connection, double speed); /** Frees a connection object */ void connection_free(void *data); +int connection_has_piece(connection_t connection, unsigned int piece); #endif /* BITTORRENT_CONNECTION_H_ */