Ajout du header pour node.c

This commit is contained in:
N07070 2020-03-13 14:46:06 +01:00
parent 62b01d973f
commit 2b9e67e627

26
src/node.h Normal file
View File

@ -0,0 +1,26 @@
// Define constants
// fonctions signatures
void listen_for_packets();
void check_header();
void update_neighbours();
void work_with_tlvs();
int validate_tlvs();
// threaded functions
void t_ask_for_more_peers();
void t_update_neighbours();
void t_get_network_state();
// Helper functions
char * hash();
short * get_seq_no(short s, int n);