summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-06-26 15:33:32 -0400
committerirungentoo <irungentoo@gmail.com>2013-06-26 15:33:32 -0400
commit488df25e0547a2aa3df262fcae2d9c58fe3a3b70 (patch)
tree590539f7c05d9be0d6a27ed65141eec8e58572fb
parente6d14d1dad10c8d51f079d31fe26c6aa74a01639 (diff)
Changed function name.
-rw-r--r--core/DHT.c2
-rw-r--r--core/DHT.h2
-rw-r--r--testing/DHT_test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/DHT.c b/core/DHT.c
index 1f2db525..d7299100 100644
--- a/core/DHT.c
+++ b/core/DHT.c
@@ -660,7 +660,7 @@ IP_Port getfriendip(char * client_id)
660 660
661 661
662 662
663int DHT_recvpacket(char * packet, uint32_t length, IP_Port source) 663int 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:
diff --git a/core/DHT.h b/core/DHT.h
index 935c5b73..a66e7bad 100644
--- a/core/DHT.h
+++ b/core/DHT.h
@@ -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.
98int DHT_recvpacket(char * packet, uint32_t length, IP_Port source); 98int 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
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index c8af599a..be2f0168 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -123,7 +123,7 @@ int main(int argc, char *argv[])
123 123
124 while(recievepacket(&ip_port, data, &length) != -1) 124 while(recievepacket(&ip_port, data, &length) != -1)
125 { 125 {
126 if(DHT_recvpacket(data, length, ip_port)) 126 if(DHT_handlepacket(data, length, ip_port))
127 { 127 {
128 printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length); 128 printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length);
129 printf("--------------------BEGIN-----------------------------\n"); 129 printf("--------------------BEGIN-----------------------------\n");