mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added function to DHT.h and fixed half written sentence in readme.
This commit is contained in:
parent
1f5fba0a0c
commit
6e881efad6
|
@ -44,7 +44,7 @@ Proposal of a free as in freedom skype replacement:
|
|||
Vastly simplified packet format.
|
||||
|
||||
Boostrapping:
|
||||
The first time you install the client
|
||||
The first time you install the client we bootstrap it with a node on our servers.(bandwidth should not be a problem as the client only needs to be sent one reply.)
|
||||
|
||||
|
||||
Basics (All the numbers here are just guesses and are probably not optimal values):
|
||||
|
|
|
@ -65,6 +65,7 @@ void addfriend(char * client_id);
|
|||
//returns 1 if failure (client_id not in friends list)
|
||||
char delfriend(char * client_id);
|
||||
|
||||
|
||||
//Get ip of friend
|
||||
//client_id must be 32 bytes long.
|
||||
//ip must be 4 bytes long.
|
||||
|
@ -80,6 +81,11 @@ 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);
|
||||
|
||||
//Use this function to bootstrap the client
|
||||
//Sends a get nodes request to the given ip port
|
||||
void bootstrap(IP_Port ip_port);
|
||||
|
||||
|
||||
//TODO:
|
||||
//Add functions to save and load the state(client list, friends list)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user