Changed function name.

This commit is contained in:
irungentoo 2013-06-26 15:33:32 -04:00
parent e6d14d1dad
commit 488df25e05
3 changed files with 3 additions and 3 deletions

View File

@ -660,7 +660,7 @@ IP_Port getfriendip(char * client_id)
int DHT_recvpacket(char * packet, uint32_t length, IP_Port source) int DHT_handlepacket(char * packet, uint32_t length, IP_Port source)
{ {
switch (packet[0]) { switch (packet[0]) {
case 0: case 0:

View File

@ -95,7 +95,7 @@ void doDHT();
//if we recieve a DHT packet we call this function so it can be handled. //if we recieve a DHT packet we call this function so it can be handled.
//Return 0 if packet is handled correctly. //Return 0 if packet is handled correctly.
//return 1 if it didn't handle the packet or if the packet was shit. //return 1 if it didn't handle the packet or if the packet was shit.
int DHT_recvpacket(char * packet, uint32_t length, IP_Port source); int DHT_handlepacket(char * packet, uint32_t length, IP_Port source);
//Use this function to bootstrap the client //Use this function to bootstrap the client
//Sends a get nodes request to the given ip port //Sends a get nodes request to the given ip port

View File

@ -123,7 +123,7 @@ int main(int argc, char *argv[])
while(recievepacket(&ip_port, data, &length) != -1) while(recievepacket(&ip_port, data, &length) != -1)
{ {
if(DHT_recvpacket(data, length, ip_port)) if(DHT_handlepacket(data, length, ip_port))
{ {
printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length); printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length);
printf("--------------------BEGIN-----------------------------\n"); printf("--------------------BEGIN-----------------------------\n");