diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.am | 50 | ||||
-rw-r--r-- | src/util/connection.c (renamed from src/util/network.c) | 46 | ||||
-rw-r--r-- | src/util/test_connection.c (renamed from src/util/test_network.c) | 8 | ||||
-rw-r--r-- | src/util/test_connection_addressing.c (renamed from src/util/test_network_addressing.c) | 8 | ||||
-rw-r--r-- | src/util/test_connection_receive_cancel.c (renamed from src/util/test_network_receive_cancel.c) | 8 | ||||
-rw-r--r-- | src/util/test_connection_timeout.c (renamed from src/util/test_network_timeout.c) | 8 | ||||
-rw-r--r-- | src/util/test_connection_timeout_no_connect.c (renamed from src/util/test_network_timeout_no_connect.c) | 8 | ||||
-rw-r--r-- | src/util/test_connection_transmit_cancel.c (renamed from src/util/test_network_transmit_cancel.c) | 8 |
8 files changed, 73 insertions, 71 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index d58d80bac..37ff8250b 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am | |||
@@ -22,6 +22,7 @@ libgnunetutil_la_SOURCES = \ | |||
22 | common_gettext.c \ | 22 | common_gettext.c \ |
23 | common_logging.c \ | 23 | common_logging.c \ |
24 | configuration.c \ | 24 | configuration.c \ |
25 | connection.c \ | ||
25 | container_bloomfilter.c \ | 26 | container_bloomfilter.c \ |
26 | container_meta_data.c \ | 27 | container_meta_data.c \ |
27 | container_multihashmap.c \ | 28 | container_multihashmap.c \ |
@@ -37,7 +38,6 @@ libgnunetutil_la_SOURCES = \ | |||
37 | getopt.c \ | 38 | getopt.c \ |
38 | getopt_helpers.c \ | 39 | getopt_helpers.c \ |
39 | network.c \ | 40 | network.c \ |
40 | network_socket.c \ | ||
41 | os_installation.c \ | 41 | os_installation.c \ |
42 | os_load.c \ | 42 | os_load.c \ |
43 | os_network.c \ | 43 | os_network.c \ |
@@ -93,12 +93,12 @@ check_PROGRAMS = \ | |||
93 | test_crypto_rsa \ | 93 | test_crypto_rsa \ |
94 | test_disk \ | 94 | test_disk \ |
95 | test_getopt \ | 95 | test_getopt \ |
96 | test_network \ | 96 | test_connection \ |
97 | test_network_addressing \ | 97 | test_connection_addressing \ |
98 | test_network_receive_cancel \ | 98 | test_connection_receive_cancel \ |
99 | test_network_timeout \ | 99 | test_connection_timeout \ |
100 | test_network_timeout_no_connect \ | 100 | test_connection_timeout_no_connect \ |
101 | test_network_transmit_cancel \ | 101 | test_connection_transmit_cancel \ |
102 | test_os_load \ | 102 | test_os_load \ |
103 | test_os_network \ | 103 | test_os_network \ |
104 | test_os_priority \ | 104 | test_os_priority \ |
@@ -207,34 +207,34 @@ test_getopt_SOURCES = \ | |||
207 | test_getopt_LDADD = \ | 207 | test_getopt_LDADD = \ |
208 | $(top_builddir)/src/util/libgnunetutil.la | 208 | $(top_builddir)/src/util/libgnunetutil.la |
209 | 209 | ||
210 | test_network_SOURCES = \ | 210 | test_connection_SOURCES = \ |
211 | test_network.c | 211 | test_connection.c |
212 | test_network_LDADD = \ | 212 | test_connection_LDADD = \ |
213 | $(top_builddir)/src/util/libgnunetutil.la | 213 | $(top_builddir)/src/util/libgnunetutil.la |
214 | 214 | ||
215 | test_network_addressing_SOURCES = \ | 215 | test_connection_addressing_SOURCES = \ |
216 | test_network_addressing.c | 216 | test_connection_addressing.c |
217 | test_network_addressing_LDADD = \ | 217 | test_connection_addressing_LDADD = \ |
218 | $(top_builddir)/src/util/libgnunetutil.la | 218 | $(top_builddir)/src/util/libgnunetutil.la |
219 | 219 | ||
220 | test_network_receive_cancel_SOURCES = \ | 220 | test_connection_receive_cancel_SOURCES = \ |
221 | test_network_receive_cancel.c | 221 | test_connection_receive_cancel.c |
222 | test_network_receive_cancel_LDADD = \ | 222 | test_connection_receive_cancel_LDADD = \ |
223 | $(top_builddir)/src/util/libgnunetutil.la | 223 | $(top_builddir)/src/util/libgnunetutil.la |
224 | 224 | ||
225 | test_network_timeout_SOURCES = \ | 225 | test_connection_timeout_SOURCES = \ |
226 | test_network_timeout.c | 226 | test_connection_timeout.c |
227 | test_network_timeout_LDADD = \ | 227 | test_connection_timeout_LDADD = \ |
228 | $(top_builddir)/src/util/libgnunetutil.la | 228 | $(top_builddir)/src/util/libgnunetutil.la |
229 | 229 | ||
230 | test_network_timeout_no_connect_SOURCES = \ | 230 | test_connection_timeout_no_connect_SOURCES = \ |
231 | test_network_timeout_no_connect.c | 231 | test_connection_timeout_no_connect.c |
232 | test_network_timeout_no_connect_LDADD = \ | 232 | test_connection_timeout_no_connect_LDADD = \ |
233 | $(top_builddir)/src/util/libgnunetutil.la | 233 | $(top_builddir)/src/util/libgnunetutil.la |
234 | 234 | ||
235 | test_network_transmit_cancel_SOURCES = \ | 235 | test_connection_transmit_cancel_SOURCES = \ |
236 | test_network_transmit_cancel.c | 236 | test_connection_transmit_cancel.c |
237 | test_network_transmit_cancel_LDADD = \ | 237 | test_connection_transmit_cancel_LDADD = \ |
238 | $(top_builddir)/src/util/libgnunetutil.la | 238 | $(top_builddir)/src/util/libgnunetutil.la |
239 | 239 | ||
240 | test_os_load_SOURCES = \ | 240 | test_os_load_SOURCES = \ |
diff --git a/src/util/network.c b/src/util/connection.c index 35dfc69ca..eeb99f03c 100644 --- a/src/util/network.c +++ b/src/util/connection.c | |||
@@ -19,8 +19,8 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file util/network/network.c | 22 | * @file util/connection.c |
23 | * @brief basic, low-level TCP networking interface | 23 | * @brief TCP connection management |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | 25 | * |
26 | * This code is rather complex. Only modify it if you | 26 | * This code is rather complex. Only modify it if you |
@@ -40,7 +40,7 @@ | |||
40 | #include "gnunet_connection_lib.h" | 40 | #include "gnunet_connection_lib.h" |
41 | #include "gnunet_scheduler_lib.h" | 41 | #include "gnunet_scheduler_lib.h" |
42 | 42 | ||
43 | #define DEBUG_NETWORK GNUNET_NO | 43 | #define DEBUG_CONNECTION GNUNET_NO |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * List of address families to give as hints to | 46 | * List of address families to give as hints to |
@@ -314,7 +314,7 @@ GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle | |||
314 | GNUNET_free (uaddr); | 314 | GNUNET_free (uaddr); |
315 | return NULL; | 315 | return NULL; |
316 | } | 316 | } |
317 | #if DEBUG_NETWORK | 317 | #if DEBUG_CONNECTION |
318 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 318 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
319 | _("Accepting connection from `%s'\n"), | 319 | _("Accepting connection from `%s'\n"), |
320 | GNUNET_a2s(uaddr, addrlen)); | 320 | GNUNET_a2s(uaddr, addrlen)); |
@@ -439,7 +439,7 @@ try_connect (struct GNUNET_CONNECTION_Handle *sock) | |||
439 | GNUNET_break (0 == GNUNET_NETWORK_socket_close (s)); | 439 | GNUNET_break (0 == GNUNET_NETWORK_socket_close (s)); |
440 | return GNUNET_SYSERR; | 440 | return GNUNET_SYSERR; |
441 | } | 441 | } |
442 | #if DEBUG_NETWORK | 442 | #if DEBUG_CONNECTION |
443 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 443 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
444 | _("Trying to connect to `%s'\n"), | 444 | _("Trying to connect to `%s'\n"), |
445 | GNUNET_a2s(sock->ai_pos->ai_addr, | 445 | GNUNET_a2s(sock->ai_pos->ai_addr, |
@@ -491,7 +491,7 @@ connect_continuation (void *cls, | |||
491 | (0 != GNUNET_NETWORK_socket_getsockopt (sock->sock, SOL_SOCKET, SO_ERROR, &error, &len)) || | 491 | (0 != GNUNET_NETWORK_socket_getsockopt (sock->sock, SOL_SOCKET, SO_ERROR, &error, &len)) || |
492 | (error != 0) || (errno != 0)) | 492 | (error != 0) || (errno != 0)) |
493 | { | 493 | { |
494 | #if DEBUG_NETWORK | 494 | #if DEBUG_CONNECTION |
495 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 495 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
496 | "Failed to establish TCP connection to `%s'\n", | 496 | "Failed to establish TCP connection to `%s'\n", |
497 | GNUNET_a2s(sock->addr, sock->addrlen)); | 497 | GNUNET_a2s(sock->addr, sock->addrlen)); |
@@ -502,7 +502,7 @@ connect_continuation (void *cls, | |||
502 | if (GNUNET_SYSERR == try_connect (sock)) | 502 | if (GNUNET_SYSERR == try_connect (sock)) |
503 | { | 503 | { |
504 | /* failed for good */ | 504 | /* failed for good */ |
505 | #if DEBUG_NETWORK | 505 | #if DEBUG_CONNECTION |
506 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 506 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
507 | "Failed to establish TCP connection, no further addresses to try.\n"); | 507 | "Failed to establish TCP connection, no further addresses to try.\n"); |
508 | #endif | 508 | #endif |
@@ -522,7 +522,7 @@ connect_continuation (void *cls, | |||
522 | return; | 522 | return; |
523 | } | 523 | } |
524 | /* connect succeeded! clean up "ai" */ | 524 | /* connect succeeded! clean up "ai" */ |
525 | #if DEBUG_NETWORK | 525 | #if DEBUG_CONNECTION |
526 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 526 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
527 | "Connection to `%s' succeeded!\n", | 527 | "Connection to `%s' succeeded!\n", |
528 | GNUNET_a2s(sock->addr, sock->addrlen)); | 528 | GNUNET_a2s(sock->addr, sock->addrlen)); |
@@ -622,7 +622,7 @@ GNUNET_CONNECTION_create_from_sockaddr (struct GNUNET_SCHEDULER_Handle | |||
622 | GNUNET_break (0 == GNUNET_NETWORK_socket_close (s)); | 622 | GNUNET_break (0 == GNUNET_NETWORK_socket_close (s)); |
623 | return NULL; | 623 | return NULL; |
624 | } | 624 | } |
625 | #if DEBUG_NETWORK | 625 | #if DEBUG_CONNECTION |
626 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 626 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
627 | _("Trying to connect to `%s'\n"), | 627 | _("Trying to connect to `%s'\n"), |
628 | GNUNET_a2s(serv_addr, addrlen)); | 628 | GNUNET_a2s(serv_addr, addrlen)); |
@@ -681,7 +681,7 @@ destroy_continuation (void *cls, | |||
681 | } | 681 | } |
682 | if (sock->sock != NULL) | 682 | if (sock->sock != NULL) |
683 | { | 683 | { |
684 | #if DEBUG_NETWORK | 684 | #if DEBUG_CONNECTION |
685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down socket.\n"); | 685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutting down socket.\n"); |
686 | #endif | 686 | #endif |
687 | GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR); | 687 | GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR); |
@@ -744,7 +744,7 @@ signal_timeout (struct GNUNET_CONNECTION_Handle *sh) | |||
744 | { | 744 | { |
745 | GNUNET_CONNECTION_Receiver receiver; | 745 | GNUNET_CONNECTION_Receiver receiver; |
746 | 746 | ||
747 | #if DEBUG_NETWORK | 747 | #if DEBUG_CONNECTION |
748 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 748 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
749 | "Network signals time out to receiver!\n"); | 749 | "Network signals time out to receiver!\n"); |
750 | #endif | 750 | #endif |
@@ -786,7 +786,7 @@ receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
786 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) || | 786 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) || |
787 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))) | 787 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))) |
788 | { | 788 | { |
789 | #if DEBUG_NETWORK | 789 | #if DEBUG_CONNECTION |
790 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 790 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
791 | "Receive encounters error: time out...\n"); | 791 | "Receive encounters error: time out...\n"); |
792 | #endif | 792 | #endif |
@@ -796,7 +796,7 @@ receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
796 | if (sh->sock == NULL) | 796 | if (sh->sock == NULL) |
797 | { | 797 | { |
798 | /* connect failed for good */ | 798 | /* connect failed for good */ |
799 | #if DEBUG_NETWORK | 799 | #if DEBUG_CONNECTION |
800 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 800 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
801 | "Receive encounters error, socket closed...\n"); | 801 | "Receive encounters error, socket closed...\n"); |
802 | #endif | 802 | #endif |
@@ -817,14 +817,14 @@ RETRY: | |||
817 | { | 817 | { |
818 | if (errno == EINTR) | 818 | if (errno == EINTR) |
819 | goto RETRY; | 819 | goto RETRY; |
820 | #if DEBUG_NETWORK | 820 | #if DEBUG_CONNECTION |
821 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 821 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
822 | "Error receiving: %s\n", STRERROR (errno)); | 822 | "Error receiving: %s\n", STRERROR (errno)); |
823 | #endif | 823 | #endif |
824 | signal_error (sh, errno); | 824 | signal_error (sh, errno); |
825 | return; | 825 | return; |
826 | } | 826 | } |
827 | #if DEBUG_NETWORK | 827 | #if DEBUG_CONNECTION |
828 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 828 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
829 | "receive_ready read %u/%u bytes from `%s'!\n", | 829 | "receive_ready read %u/%u bytes from `%s'!\n", |
830 | (unsigned int) ret, | 830 | (unsigned int) ret, |
@@ -855,7 +855,7 @@ receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
855 | (sh->connect_task == GNUNET_SCHEDULER_NO_TASK)) | 855 | (sh->connect_task == GNUNET_SCHEDULER_NO_TASK)) |
856 | { | 856 | { |
857 | /* not connected and no longer trying */ | 857 | /* not connected and no longer trying */ |
858 | #if DEBUG_NETWORK | 858 | #if DEBUG_CONNECTION |
859 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 859 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
860 | "Receive encounters error, socket closed...\n"); | 860 | "Receive encounters error, socket closed...\n"); |
861 | #endif | 861 | #endif |
@@ -866,7 +866,7 @@ receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
866 | if ((now.value > sh->receive_timeout.value) || | 866 | if ((now.value > sh->receive_timeout.value) || |
867 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))) | 867 | (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))) |
868 | { | 868 | { |
869 | #if DEBUG_NETWORK | 869 | #if DEBUG_CONNECTION |
870 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 870 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
871 | "Receive encounters error: time out...\n"); | 871 | "Receive encounters error: time out...\n"); |
872 | #endif | 872 | #endif |
@@ -1013,7 +1013,7 @@ transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1013 | struct GNUNET_CONNECTION_Handle *sock = cls; | 1013 | struct GNUNET_CONNECTION_Handle *sock = cls; |
1014 | GNUNET_CONNECTION_TransmitReadyNotify notify; | 1014 | GNUNET_CONNECTION_TransmitReadyNotify notify; |
1015 | 1015 | ||
1016 | #if DEBUG_NETWORK | 1016 | #if DEBUG_CONNECTION |
1017 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmit fails, time out reached.\n"); | 1017 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmit fails, time out reached.\n"); |
1018 | #endif | 1018 | #endif |
1019 | notify = sock->nth.notify_ready; | 1019 | notify = sock->nth.notify_ready; |
@@ -1068,7 +1068,7 @@ transmit_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1068 | (0 == (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)) && | 1068 | (0 == (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)) && |
1069 | (!GNUNET_NETWORK_fdset_isset (tc->write_ready, sock->sock))) ) | 1069 | (!GNUNET_NETWORK_fdset_isset (tc->write_ready, sock->sock))) ) |
1070 | { | 1070 | { |
1071 | #if DEBUG_NETWORK | 1071 | #if DEBUG_CONNECTION |
1072 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1072 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1073 | _("Could not satisfy pending transmission request, socket closed or connect failed.\n")); | 1073 | _("Could not satisfy pending transmission request, socket closed or connect failed.\n")); |
1074 | #endif | 1074 | #endif |
@@ -1111,7 +1111,7 @@ RETRY: | |||
1111 | { | 1111 | { |
1112 | if (errno == EINTR) | 1112 | if (errno == EINTR) |
1113 | goto RETRY; | 1113 | goto RETRY; |
1114 | #if DEBUG_NETWORK | 1114 | #if DEBUG_CONNECTION |
1115 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "send"); | 1115 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "send"); |
1116 | #endif | 1116 | #endif |
1117 | GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR); | 1117 | GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR); |
@@ -1120,7 +1120,7 @@ RETRY: | |||
1120 | transmit_error (sock); | 1120 | transmit_error (sock); |
1121 | return; | 1121 | return; |
1122 | } | 1122 | } |
1123 | #if DEBUG_NETWORK | 1123 | #if DEBUG_CONNECTION |
1124 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1124 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1125 | "transmit_ready transmitted %u/%u bytes to `%s'\n", | 1125 | "transmit_ready transmitted %u/%u bytes to `%s'\n", |
1126 | (unsigned int) ret, | 1126 | (unsigned int) ret, |
@@ -1178,7 +1178,7 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle | |||
1178 | if ((sock->sock == NULL) && | 1178 | if ((sock->sock == NULL) && |
1179 | (sock->connect_task == GNUNET_SCHEDULER_NO_TASK)) | 1179 | (sock->connect_task == GNUNET_SCHEDULER_NO_TASK)) |
1180 | { | 1180 | { |
1181 | #if DEBUG_NETWORK | 1181 | #if DEBUG_CONNECTION |
1182 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1182 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1183 | "Transmission request of size %u fails, connection failed.\n", | 1183 | "Transmission request of size %u fails, connection failed.\n", |
1184 | size); | 1184 | size); |
@@ -1244,3 +1244,5 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct | |||
1244 | #ifdef __cplusplus | 1244 | #ifdef __cplusplus |
1245 | } | 1245 | } |
1246 | #endif | 1246 | #endif |
1247 | |||
1248 | /* end of connection.c */ | ||
diff --git a/src/util/test_network.c b/src/util/test_connection.c index 712167b99..3ca09281d 100644 --- a/src/util/test_network.c +++ b/src/util/test_connection.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network.c | 21 | * @file util/test_connection.c |
22 | * @brief tests for network.c | 22 | * @brief tests for connection.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -196,7 +196,7 @@ main (int argc, char *argv[]) | |||
196 | { | 196 | { |
197 | int ret = 0; | 197 | int ret = 0; |
198 | 198 | ||
199 | GNUNET_log_setup ("test_network", | 199 | GNUNET_log_setup ("test_connection", |
200 | #if VERBOSE | 200 | #if VERBOSE |
201 | "DEBUG", | 201 | "DEBUG", |
202 | #else | 202 | #else |
@@ -207,4 +207,4 @@ main (int argc, char *argv[]) | |||
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |
209 | 209 | ||
210 | /* end of test_network.c */ | 210 | /* end of test_connection.c */ |
diff --git a/src/util/test_network_addressing.c b/src/util/test_connection_addressing.c index 3b96dd06e..650b716af 100644 --- a/src/util/test_network_addressing.c +++ b/src/util/test_connection_addressing.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network_addressing.c | 21 | * @file util/test_connection_addressing.c |
22 | * @brief tests for network.c | 22 | * @brief tests for connection.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -186,7 +186,7 @@ main (int argc, char *argv[]) | |||
186 | { | 186 | { |
187 | int ret = 0; | 187 | int ret = 0; |
188 | 188 | ||
189 | GNUNET_log_setup ("test_network_addressing", | 189 | GNUNET_log_setup ("test_connection_addressing", |
190 | #if VERBOSE | 190 | #if VERBOSE |
191 | "DEBUG", | 191 | "DEBUG", |
192 | #else | 192 | #else |
@@ -197,4 +197,4 @@ main (int argc, char *argv[]) | |||
197 | return ret; | 197 | return ret; |
198 | } | 198 | } |
199 | 199 | ||
200 | /* end of test_network_addressing.c */ | 200 | /* end of test_connection_addressing.c */ |
diff --git a/src/util/test_network_receive_cancel.c b/src/util/test_connection_receive_cancel.c index 511bf9f22..338caa737 100644 --- a/src/util/test_network_receive_cancel.c +++ b/src/util/test_connection_receive_cancel.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network_receive_cancel.c | 21 | * @file util/test_connection_receive_cancel.c |
22 | * @brief tests for network.c | 22 | * @brief tests for connection.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -155,10 +155,10 @@ main (int argc, char *argv[]) | |||
155 | { | 155 | { |
156 | int ret = 0; | 156 | int ret = 0; |
157 | 157 | ||
158 | GNUNET_log_setup ("test_network_receive_cancel", "WARNING", NULL); | 158 | GNUNET_log_setup ("test_connection_receive_cancel", "WARNING", NULL); |
159 | ret += check_receive_cancel (); | 159 | ret += check_receive_cancel (); |
160 | 160 | ||
161 | return ret; | 161 | return ret; |
162 | } | 162 | } |
163 | 163 | ||
164 | /* end of test_network.c */ | 164 | /* end of test_connection_receive_cancel.c */ |
diff --git a/src/util/test_network_timeout.c b/src/util/test_connection_timeout.c index 69aff307a..61d9a2d07 100644 --- a/src/util/test_network_timeout.c +++ b/src/util/test_connection_timeout.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network_timeout.c | 21 | * @file util/test_connection_timeout.c |
22 | * @brief tests for network.c | 22 | * @brief tests for connection.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -130,7 +130,7 @@ main (int argc, char *argv[]) | |||
130 | { | 130 | { |
131 | int ret = 0; | 131 | int ret = 0; |
132 | 132 | ||
133 | GNUNET_log_setup ("test_network_timeout", | 133 | GNUNET_log_setup ("test_connection_timeout", |
134 | #if VERBOSE | 134 | #if VERBOSE |
135 | "DEBUG", | 135 | "DEBUG", |
136 | #else | 136 | #else |
@@ -141,4 +141,4 @@ main (int argc, char *argv[]) | |||
141 | return ret; | 141 | return ret; |
142 | } | 142 | } |
143 | 143 | ||
144 | /* end of test_network_timeout.c */ | 144 | /* end of test_connection_timeout.c */ |
diff --git a/src/util/test_network_timeout_no_connect.c b/src/util/test_connection_timeout_no_connect.c index c0e1b5e4d..6a6d32f38 100644 --- a/src/util/test_network_timeout_no_connect.c +++ b/src/util/test_connection_timeout_no_connect.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network_timeout.c | 21 | * @file util/test_connection_timeout_no_connect.c |
22 | * @brief tests for network.c, doing timeout which connect failure | 22 | * @brief tests for connection.c, doing timeout which connect failure |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -81,7 +81,7 @@ main (int argc, char *argv[]) | |||
81 | { | 81 | { |
82 | int ret = 0; | 82 | int ret = 0; |
83 | 83 | ||
84 | GNUNET_log_setup ("test_network_timeout_no_connect", | 84 | GNUNET_log_setup ("test_connection_timeout_no_connect", |
85 | #if VERBOSE | 85 | #if VERBOSE |
86 | "DEBUG", | 86 | "DEBUG", |
87 | #else | 87 | #else |
@@ -92,4 +92,4 @@ main (int argc, char *argv[]) | |||
92 | return ret; | 92 | return ret; |
93 | } | 93 | } |
94 | 94 | ||
95 | /* end of test_network_timeout_no_connect.c */ | 95 | /* end of test_connection_timeout_no_connect.c */ |
diff --git a/src/util/test_network_transmit_cancel.c b/src/util/test_connection_transmit_cancel.c index 362f29a59..642ea0d4c 100644 --- a/src/util/test_network_transmit_cancel.c +++ b/src/util/test_connection_transmit_cancel.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file util/test_network_transmit_cancel.c | 21 | * @file util/test_connection_transmit_cancel.c |
22 | * @brief tests for network.c | 22 | * @brief tests for connection.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_common.h" |
@@ -82,7 +82,7 @@ main (int argc, char *argv[]) | |||
82 | { | 82 | { |
83 | int ret = 0; | 83 | int ret = 0; |
84 | 84 | ||
85 | GNUNET_log_setup ("test_network_transmit_cancel", | 85 | GNUNET_log_setup ("test_connection_transmit_cancel", |
86 | #if VERBOSE | 86 | #if VERBOSE |
87 | "DEBUG", | 87 | "DEBUG", |
88 | #else | 88 | #else |
@@ -94,4 +94,4 @@ main (int argc, char *argv[]) | |||
94 | return ret; | 94 | return ret; |
95 | } | 95 | } |
96 | 96 | ||
97 | /* end of test_network_transmit_cancel.c */ | 97 | /* end of test_connection_transmit_cancel.c */ |