summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/DHT_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index be2f0168..1eae74a0 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -40,7 +40,8 @@ void print_clientlist()
40 } 40 }
41 p_ip = close_clientlist[i].ip_port; 41 p_ip = close_clientlist[i].ip_port;
42 printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 42 printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
43 printf("\nTimestamp: %u\n", close_clientlist[i].timestamp); 43 printf("\nTimestamp: %u", close_clientlist[i].timestamp);
44 printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged);
44 } 45 }
45} 46}
46 47
@@ -73,7 +74,8 @@ void print_friendlist()
73 } 74 }
74 p_ip = friends_list[k].client_list[i].ip_port; 75 p_ip = friends_list[k].client_list[i].ip_port;
75 printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 76 printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
76 printf("\nTimestamp: %u\n", friends_list[k].client_list[i].timestamp); 77 printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp);
78 printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged);
77 } 79 }
78 } 80 }
79} 81}