- unsigned int id; //node id - 160 bits
- routing_table_t table; //node routing table
- msg_comm_t receive_comm; //current receiving communication.
- msg_task_t task_received; //current task being received
-
- char mailbox[MAILBOX_NAME_SIZE]; //node mailbox
- unsigned int find_node_success; //Number of find_node which have succeeded.
- unsigned int find_node_failed; //Number of find_node which have failed.
+ unsigned int id; //node id - 160 bits
+ routing_table_t table; //node routing table
+ msg_comm_t receive_comm; //current receiving communication.
+ msg_task_t task_received; //current task being received
+
+ char mailbox[MAILBOX_NAME_SIZE]; //node mailbox
+ unsigned int find_node_success; //Number of find_node which have succeeded.
+ unsigned int find_node_failed; //Number of find_node which have failed.
node_contact_t node_contact_new(unsigned int id, unsigned int distance);
node_contact_t node_contact_copy(node_contact_t node_contact);
void node_contact_free(node_contact_t contact);
node_contact_t node_contact_new(unsigned int id, unsigned int distance);
node_contact_t node_contact_copy(node_contact_t node_contact);
void node_contact_free(node_contact_t contact);