double begin_receive_time; //time when the receiving communication has begun, useful for calculating host speed.
-} s_peer_t, *peer_t;
+} s_peer_t;
+typedef s_peer_t *peer_t;
/** Peer main function */
int peer(int argc, char *argv[]);
int piece_complete(peer_t peer, int index);
int get_first_block(peer_t peer, int piece);
-
int nb_interested_peers(peer_t peer);
int is_interested(peer_t peer, connection_t remote_peer);
int is_interested_and_free(peer_t peer, connection_t remote_peer);