From 1f5fba0a0c6a6d5303c3711c53eeb960ffcb084e Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 23 Jun 2013 23:23:28 -0400 Subject: [PATCH] Updated DHT.h --- core/DHT.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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