diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_cryptosendfiletest.c | 2 | ||||
-rw-r--r-- | testing/DHT_sendfiletest.c | 2 | ||||
-rw-r--r-- | testing/DHT_test.c | 2 | ||||
-rw-r--r-- | testing/Lossless_UDP_testclient.c | 2 | ||||
-rw-r--r-- | testing/Lossless_UDP_testserver.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/testing/DHT_cryptosendfiletest.c b/testing/DHT_cryptosendfiletest.c index 09683a45..ad77a17d 100644 --- a/testing/DHT_cryptosendfiletest.c +++ b/testing/DHT_cryptosendfiletest.c | |||
@@ -131,7 +131,7 @@ int main(int argc, char *argv[]) | |||
131 | while(1) | 131 | while(1) |
132 | { | 132 | { |
133 | 133 | ||
134 | while(recievepacket(&ip_port, data, &length) != -1) | 134 | while(receivepacket(&ip_port, data, &length) != -1) |
135 | { | 135 | { |
136 | if(rand() % 3 != 1)//simulate packet loss | 136 | if(rand() % 3 != 1)//simulate packet loss |
137 | { | 137 | { |
diff --git a/testing/DHT_sendfiletest.c b/testing/DHT_sendfiletest.c index 9a455056..52ee7400 100644 --- a/testing/DHT_sendfiletest.c +++ b/testing/DHT_sendfiletest.c | |||
@@ -85,7 +85,7 @@ int main(int argc, char *argv[]) | |||
85 | while(1) | 85 | while(1) |
86 | { | 86 | { |
87 | 87 | ||
88 | while(recievepacket(&ip_port, data, &length) != -1) | 88 | while(receivepacket(&ip_port, data, &length) != -1) |
89 | { | 89 | { |
90 | if(rand() % 3 != 1)//simulate packet loss | 90 | if(rand() % 3 != 1)//simulate packet loss |
91 | { | 91 | { |
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 25bf869e..38ca4992 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -133,7 +133,7 @@ int main(int argc, char *argv[]) | |||
133 | 133 | ||
134 | doDHT(); | 134 | doDHT(); |
135 | 135 | ||
136 | while(recievepacket(&ip_port, data, &length) != -1) | 136 | while(receivepacket(&ip_port, data, &length) != -1) |
137 | { | 137 | { |
138 | if(DHT_handlepacket(data, length, ip_port)) | 138 | if(DHT_handlepacket(data, length, ip_port)) |
139 | { | 139 | { |
diff --git a/testing/Lossless_UDP_testclient.c b/testing/Lossless_UDP_testclient.c index 79ae4a37..cc12206b 100644 --- a/testing/Lossless_UDP_testclient.c +++ b/testing/Lossless_UDP_testclient.c | |||
@@ -106,7 +106,7 @@ void Lossless_UDP() | |||
106 | IP_Port ip_port; | 106 | IP_Port ip_port; |
107 | char data[MAX_UDP_PACKET_SIZE]; | 107 | char data[MAX_UDP_PACKET_SIZE]; |
108 | uint32_t length; | 108 | uint32_t length; |
109 | while(recievepacket(&ip_port, data, &length) != -1) | 109 | while(receivepacket(&ip_port, data, &length) != -1) |
110 | { | 110 | { |
111 | printf("packet with length: %u\n", length); | 111 | printf("packet with length: %u\n", length); |
112 | if(rand() % 3 != 1)//add packet loss | 112 | if(rand() % 3 != 1)//add packet loss |
diff --git a/testing/Lossless_UDP_testserver.c b/testing/Lossless_UDP_testserver.c index 8357c2ef..2e369b30 100644 --- a/testing/Lossless_UDP_testserver.c +++ b/testing/Lossless_UDP_testserver.c | |||
@@ -102,7 +102,7 @@ void Lossless_UDP() | |||
102 | IP_Port ip_port; | 102 | IP_Port ip_port; |
103 | char data[MAX_UDP_PACKET_SIZE]; | 103 | char data[MAX_UDP_PACKET_SIZE]; |
104 | uint32_t length; | 104 | uint32_t length; |
105 | while(recievepacket(&ip_port, data, &length) != -1) | 105 | while(receivepacket(&ip_port, data, &length) != -1) |
106 | { | 106 | { |
107 | if(rand() % 3 != 1)//add packet loss | 107 | if(rand() % 3 != 1)//add packet loss |
108 | { | 108 | { |