Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this was a bad idea and I messed up my commits
[simgrid.git] / teshsuite / msg / app-bittorrent / peer.h
index 22df9138484d0e37c7ab938ea9f1665b1c5604bd..a3ac6bf11df8898872199ddd19b7c719fa9a3d7e 100644 (file)
@@ -15,7 +15,7 @@
 
 /** Peer data */
 typedef struct s_peer {
-  char* id; // peer id
+  int id; // peer id
 
   unsigned int bitfield;              // list of pieces the peer has.
   unsigned long long bitfield_blocks; // list of blocks the peer has.
@@ -48,7 +48,7 @@ int get_peers_data(peer_t peer);
 void leech_loop(peer_t peer, double deadline);
 void seed_loop(peer_t peer, double deadline);
 
-peer_t peer_init(const char* id, int seed);
+peer_t peer_init(int id, int seed);
 void peer_free(peer_t peer);
 
 char* print_bitfield(unsigned int bitfield);