summaryrefslogtreecommitdiff
path: root/testing/Lossless_UDP_testclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/Lossless_UDP_testclient.c')
-rw-r--r--testing/Lossless_UDP_testclient.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/testing/Lossless_UDP_testclient.c b/testing/Lossless_UDP_testclient.c
index 241f5bdc..bd4b1e23 100644
--- a/testing/Lossless_UDP_testclient.c
+++ b/testing/Lossless_UDP_testclient.c
@@ -68,12 +68,15 @@ int main(int argc, char *argv[])
68 uint64_t timer = current_time(); 68 uint64_t timer = current_time();
69 while(1) 69 while(1)
70 { 70 {
71 if(is_connected(connection) != 2) 71
72 if(is_connected(connection) == 3)
72 { 73 {
73 if(is_connected(connection) == 1) 74 printf("Connecting took: %llu us", (unsigned long long)(current_time() - timer));
74 { 75 break;
75 printf("Connecting took: %llu us", (unsigned long long)(current_time() - timer)); 76 }
76 } 77 if(is_connected(connection) == 0)
78 {
79 printf("Connection timeout after: %llu us", (unsigned long long)(current_time() - timer));
77 break; 80 break;
78 } 81 }
79 c_sleep(1); 82 c_sleep(1);