summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 9d599370..e194d06b 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -47,6 +47,7 @@ void print_clientlist()
47 printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged); 47 printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged);
48 p_ip = close_clientlist[i].ret_ip_port; 48 p_ip = close_clientlist[i].ret_ip_port;
49 printf("OUR IP: %u.%u.%u.%u Port: %u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 49 printf("OUR IP: %u.%u.%u.%u Port: %u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
50 printf("Timestamp: %u\n", close_clientlist[i].ret_timestamp);
50 } 51 }
51} 52}
52 53
@@ -83,6 +84,7 @@ void print_friendlist()
83 printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged); 84 printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged);
84 p_ip = friends_list[k].client_list[i].ret_ip_port; 85 p_ip = friends_list[k].client_list[i].ret_ip_port;
85 printf("ret IP: %u.%u.%u.%u:%u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 86 printf("ret IP: %u.%u.%u.%u:%u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
87 printf("Timestamp: %u\n", friends_list[k].client_list[i].ret_timestamp);
86 } 88 }
87 } 89 }
88} 90}