diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/DHT.c | 2 | ||||
-rw-r--r-- | core/DHT.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -660,7 +660,7 @@ IP_Port getfriendip(char * client_id) | |||
660 | 660 | ||
661 | 661 | ||
662 | 662 | ||
663 | int DHT_recvpacket(char * packet, uint32_t length, IP_Port source) | 663 | int DHT_handlepacket(char * packet, uint32_t length, IP_Port source) |
664 | { | 664 | { |
665 | switch (packet[0]) { | 665 | switch (packet[0]) { |
666 | case 0: | 666 | case 0: |
@@ -95,7 +95,7 @@ void doDHT(); | |||
95 | //if we recieve a DHT packet we call this function so it can be handled. | 95 | //if we recieve a DHT packet we call this function so it can be handled. |
96 | //Return 0 if packet is handled correctly. | 96 | //Return 0 if packet is handled correctly. |
97 | //return 1 if it didn't handle the packet or if the packet was shit. | 97 | //return 1 if it didn't handle the packet or if the packet was shit. |
98 | int DHT_recvpacket(char * packet, uint32_t length, IP_Port source); | 98 | int DHT_handlepacket(char * packet, uint32_t length, IP_Port source); |
99 | 99 | ||
100 | //Use this function to bootstrap the client | 100 | //Use this function to bootstrap the client |
101 | //Sends a get nodes request to the given ip port | 101 | //Sends a get nodes request to the given ip port |