diff --git a/core/DHT.h b/core/DHT.h index 6f71485c..6c872a70 100644 --- a/core/DHT.h +++ b/core/DHT.h @@ -77,13 +77,20 @@ IP_Port getfriendip(char * client_id); //Run this function at least a couple times per second (It's the main loop) void doDHT(); +//if we recieve a DHT packet we call this function so it can be handled. +void DHT_recvpacket(char * packet, uint32_t length); - +//TODO: +//Add functions to save and load the state(client list, friends list) //Global variables +//Our UDP socket. +//We only use one so it's much easier to have it as a global variable +int sock; + Client_data client_list[32]; //Let's start with a static array for testing. -Friend friends_list[256] +Friend friends_list[256] \ No newline at end of file