Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix missing doc for Tasks
[simgrid.git] / examples / c / app-bittorrent / bittorrent-peer.h
index babc134..7757e66 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2021. The SimGrid Team.
+/* Copyright (c) 2012-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -57,7 +57,7 @@ typedef s_peer_t* peer_t;
 typedef const s_peer_t* const_peer_t;
 
 /** Peer main function */
-void peer(int argc, char* argv[]);
+void peer_run(int argc, char* argv[]);
 
 int get_peers_from_tracker(const_peer_t peer);
 void send_handshake_to_all_peers(const_peer_t peer);
@@ -73,7 +73,7 @@ int is_interested(const_peer_t peer, const_connection_t remote_peer);
 int is_interested_and_free(const_peer_t peer, const_connection_t remote_peer);
 void update_pieces_count_from_bitfield(const_peer_t peer, unsigned int bitfield);
 
-int count_pieces(unsigned int bitfield);
+unsigned int count_pieces(unsigned int bitfield);
 int nb_interested_peers(const_peer_t peer);
 
 void leech(peer_t peer);