diff --git a/README.md b/README.md index 3f4f8d02..708a3591 100644 --- a/README.md +++ b/README.md @@ -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): diff --git a/core/DHT.h b/core/DHT.h index 6c872a70..90036525 100644 --- a/core/DHT.h +++ b/core/DHT.h @@ -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)