mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Updated DHT.h
This commit is contained in:
parent
391e101ac8
commit
1f5fba0a0c
@ -77,12 +77,19 @@ IP_Port getfriendip(char * client_id);
|
|||||||
//Run this function at least a couple times per second (It's the main loop)
|
//Run this function at least a couple times per second (It's the main loop)
|
||||||
void doDHT();
|
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
|
//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];
|
Client_data client_list[32];
|
||||||
|
|
||||||
//Let's start with a static array for testing.
|
//Let's start with a static array for testing.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user