mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Changed function name.
This commit is contained in:
parent
e6d14d1dad
commit
488df25e05
|
@ -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]) {
|
||||
case 0:
|
||||
|
|
|
@ -95,7 +95,7 @@ void doDHT();
|
|||
//if we recieve a DHT packet we call this function so it can be handled.
|
||||
//Return 0 if packet is handled correctly.
|
||||
//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
|
||||
//Sends a get nodes request to the given ip port
|
||||
|
|
|
@ -123,7 +123,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
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("--------------------BEGIN-----------------------------\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user