-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2012-2019. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/** Contains the connection data of a peer. */
typedef struct s_connection {
- char* id; // Peer id
+ int id; // Peer id
unsigned int bitfield; // Fields
char* mailbox;
int messages_count;
/** @brief Build a new connection object from the peer id.
* @param id id of the peer
*/
-connection_t connection_new(const char* id);
+connection_t connection_new(int id);
/** @brief Add a new value to the peer speed average
* @param connection connection data
* @param speed speed to add to the speed average