aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-08-29 18:29:34 +0000
committerChristian Grothoff <christian@grothoff.org>2009-08-29 18:29:34 +0000
commiteb0874673e122ddd822af3f4a9f9090c6104cd2a (patch)
tree8f7b3e46c546bd35fabd7db4c49e349b8073f589 /src/util
parentd867aaafeb27cc071388559585a0d0dfbc96e45b (diff)
downloadgnunet-eb0874673e122ddd822af3f4a9f9090c6104cd2a.tar.gz
gnunet-eb0874673e122ddd822af3f4a9f9090c6104cd2a.zip
more naming fixes
Diffstat (limited to 'src/util')
-rw-r--r--src/util/client.c4
-rw-r--r--src/util/network.c62
-rw-r--r--src/util/server.c6
-rw-r--r--src/util/test_network.c6
-rw-r--r--src/util/test_network_addressing.c6
-rw-r--r--src/util/test_network_receive_cancel.c6
-rw-r--r--src/util/test_network_timeout.c4
-rw-r--r--src/util/test_network_timeout_no_connect.c2
-rw-r--r--src/util/test_network_transmit_cancel.c2
9 files changed, 49 insertions, 49 deletions
diff --git a/src/util/client.c b/src/util/client.c
index 9836b3e79..09eaeff1a 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -48,7 +48,7 @@ struct GNUNET_CLIENT_Connection
48 /** 48 /**
49 * the socket handle, NULL if not live 49 * the socket handle, NULL if not live
50 */ 50 */
51 struct GNUNET_NETWORK_ConnectionHandle *sock; 51 struct GNUNET_CONNECTION_Handle *sock;
52 52
53 /** 53 /**
54 * Our scheduler. 54 * Our scheduler.
@@ -127,7 +127,7 @@ GNUNET_CLIENT_connect (struct GNUNET_SCHEDULER_Handle *sched,
127 const struct GNUNET_CONFIGURATION_Handle *cfg) 127 const struct GNUNET_CONFIGURATION_Handle *cfg)
128{ 128{
129 struct GNUNET_CLIENT_Connection *ret; 129 struct GNUNET_CLIENT_Connection *ret;
130 struct GNUNET_NETWORK_ConnectionHandle *sock; 130 struct GNUNET_CONNECTION_Handle *sock;
131 char *hostname; 131 char *hostname;
132 unsigned long long port; 132 unsigned long long port;
133 133
diff --git a/src/util/network.c b/src/util/network.c
index 02d9e5dfd..fd5fe1217 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -66,7 +66,7 @@ struct GNUNET_NETWORK_TransmitHandle
66 /** 66 /**
67 * Our socket handle. 67 * Our socket handle.
68 */ 68 */
69 struct GNUNET_NETWORK_ConnectionHandle *sh; 69 struct GNUNET_CONNECTION_Handle *sh;
70 70
71 /** 71 /**
72 * Timeout for receiving (in absolute time). 72 * Timeout for receiving (in absolute time).
@@ -89,7 +89,7 @@ struct GNUNET_NETWORK_TransmitHandle
89/** 89/**
90 * @brief handle for a network socket 90 * @brief handle for a network socket
91 */ 91 */
92struct GNUNET_NETWORK_ConnectionHandle 92struct GNUNET_CONNECTION_Handle
93{ 93{
94 94
95 /** 95 /**
@@ -217,13 +217,13 @@ struct GNUNET_NETWORK_ConnectionHandle
217 * 0 for sockets that need no write buffers, such as listen sockets) 217 * 0 for sockets that need no write buffers, such as listen sockets)
218 * @return the boxed socket handle 218 * @return the boxed socket handle
219 */ 219 */
220struct GNUNET_NETWORK_ConnectionHandle * 220struct GNUNET_CONNECTION_Handle *
221GNUNET_CONNECTION_create_from_existing (struct GNUNET_SCHEDULER_Handle 221GNUNET_CONNECTION_create_from_existing (struct GNUNET_SCHEDULER_Handle
222 *sched, struct GNUNET_NETWORK_Descriptor *osSocket, 222 *sched, struct GNUNET_NETWORK_Descriptor *osSocket,
223 size_t maxbuf) 223 size_t maxbuf)
224{ 224{
225 struct GNUNET_NETWORK_ConnectionHandle *ret; 225 struct GNUNET_CONNECTION_Handle *ret;
226 ret = GNUNET_malloc (sizeof (struct GNUNET_NETWORK_ConnectionHandle) + maxbuf); 226 ret = GNUNET_malloc (sizeof (struct GNUNET_CONNECTION_Handle) + maxbuf);
227 ret->write_buffer = (char *) &ret[1]; 227 ret->write_buffer = (char *) &ret[1];
228 ret->write_buffer_size = maxbuf; 228 ret->write_buffer_size = maxbuf;
229 ret->sock = osSocket; 229 ret->sock = osSocket;
@@ -244,14 +244,14 @@ GNUNET_CONNECTION_create_from_existing (struct GNUNET_SCHEDULER_Handle
244 * 0 for sockets that need no write buffers, such as listen sockets) 244 * 0 for sockets that need no write buffers, such as listen sockets)
245 * @return the socket handle, NULL on error 245 * @return the socket handle, NULL on error
246 */ 246 */
247struct GNUNET_NETWORK_ConnectionHandle * 247struct GNUNET_CONNECTION_Handle *
248GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle 248GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle
249 *sched, 249 *sched,
250 GNUNET_NETWORK_AccessCheck access, 250 GNUNET_NETWORK_AccessCheck access,
251 void *access_cls, struct GNUNET_NETWORK_Descriptor *lsock, 251 void *access_cls, struct GNUNET_NETWORK_Descriptor *lsock,
252 size_t maxbuf) 252 size_t maxbuf)
253{ 253{
254 struct GNUNET_NETWORK_ConnectionHandle *ret; 254 struct GNUNET_CONNECTION_Handle *ret;
255 char addr[32]; 255 char addr[32];
256 socklen_t addrlen; 256 socklen_t addrlen;
257 struct GNUNET_NETWORK_Descriptor *sock; 257 struct GNUNET_NETWORK_Descriptor *sock;
@@ -319,7 +319,7 @@ GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle
319 _("Accepting connection from `%s'\n"), 319 _("Accepting connection from `%s'\n"),
320 GNUNET_a2s(uaddr, addrlen)); 320 GNUNET_a2s(uaddr, addrlen));
321#endif 321#endif
322 ret = GNUNET_malloc (sizeof (struct GNUNET_NETWORK_ConnectionHandle) + maxbuf); 322 ret = GNUNET_malloc (sizeof (struct GNUNET_CONNECTION_Handle) + maxbuf);
323 ret->write_buffer = (char *) &ret[1]; 323 ret->write_buffer = (char *) &ret[1];
324 ret->write_buffer_size = maxbuf; 324 ret->write_buffer_size = maxbuf;
325 ret->addr = uaddr; 325 ret->addr = uaddr;
@@ -338,7 +338,7 @@ GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle
338 * @return GNUNET_OK on success 338 * @return GNUNET_OK on success
339 */ 339 */
340int 340int
341GNUNET_CONNECTION_get_address (struct GNUNET_NETWORK_ConnectionHandle *sock, 341GNUNET_CONNECTION_get_address (struct GNUNET_CONNECTION_Handle *sock,
342 void **addr, size_t * addrlen) 342 void **addr, size_t * addrlen)
343{ 343{
344 if ((sock->addr == NULL) || (sock->addrlen == 0)) 344 if ((sock->addr == NULL) || (sock->addrlen == 0))
@@ -355,7 +355,7 @@ GNUNET_CONNECTION_get_address (struct GNUNET_NETWORK_ConnectionHandle *sock,
355 * families as specified in the "address_families" array. 355 * families as specified in the "address_families" array.
356 */ 356 */
357static void 357static void
358try_lookup (struct GNUNET_NETWORK_ConnectionHandle *sock) 358try_lookup (struct GNUNET_CONNECTION_Handle *sock)
359{ 359{
360 struct addrinfo hints; 360 struct addrinfo hints;
361 int ec; 361 int ec;
@@ -387,7 +387,7 @@ try_lookup (struct GNUNET_NETWORK_ConnectionHandle *sock)
387 * @return GNUNET_SYSERR error (no more addresses to try) 387 * @return GNUNET_SYSERR error (no more addresses to try)
388 */ 388 */
389static int 389static int
390try_connect (struct GNUNET_NETWORK_ConnectionHandle *sock) 390try_connect (struct GNUNET_CONNECTION_Handle *sock)
391{ 391{
392 struct GNUNET_NETWORK_Descriptor *s; 392 struct GNUNET_NETWORK_Descriptor *s;
393 393
@@ -476,7 +476,7 @@ static void
476connect_continuation (void *cls, 476connect_continuation (void *cls,
477 const struct GNUNET_SCHEDULER_TaskContext *tc) 477 const struct GNUNET_SCHEDULER_TaskContext *tc)
478{ 478{
479 struct GNUNET_NETWORK_ConnectionHandle *sock = cls; 479 struct GNUNET_CONNECTION_Handle *sock = cls;
480 unsigned int len; 480 unsigned int len;
481 int error; 481 int error;
482 482
@@ -545,14 +545,14 @@ connect_continuation (void *cls,
545 * 0 for sockets that need no write buffers, such as listen sockets) 545 * 0 for sockets that need no write buffers, such as listen sockets)
546 * @return the socket handle 546 * @return the socket handle
547 */ 547 */
548struct GNUNET_NETWORK_ConnectionHandle * 548struct GNUNET_CONNECTION_Handle *
549GNUNET_CONNECTION_create_from_connect (struct GNUNET_SCHEDULER_Handle 549GNUNET_CONNECTION_create_from_connect (struct GNUNET_SCHEDULER_Handle
550 *sched, const char *hostname, 550 *sched, const char *hostname,
551 uint16_t port, size_t maxbuf) 551 uint16_t port, size_t maxbuf)
552{ 552{
553 struct GNUNET_NETWORK_ConnectionHandle *ret; 553 struct GNUNET_CONNECTION_Handle *ret;
554 554
555 ret = GNUNET_malloc (sizeof (struct GNUNET_NETWORK_ConnectionHandle) + maxbuf); 555 ret = GNUNET_malloc (sizeof (struct GNUNET_CONNECTION_Handle) + maxbuf);
556 ret->sock = NULL; 556 ret->sock = NULL;
557 ret->sched = sched; 557 ret->sched = sched;
558 ret->write_buffer = (char *) &ret[1]; 558 ret->write_buffer = (char *) &ret[1];
@@ -592,14 +592,14 @@ GNUNET_CONNECTION_create_from_connect (struct GNUNET_SCHEDULER_Handle
592 * 0 for sockets that need no write buffers, such as listen sockets) 592 * 0 for sockets that need no write buffers, such as listen sockets)
593 * @return the socket handle 593 * @return the socket handle
594 */ 594 */
595struct GNUNET_NETWORK_ConnectionHandle * 595struct GNUNET_CONNECTION_Handle *
596GNUNET_CONNECTION_create_from_sockaddr (struct GNUNET_SCHEDULER_Handle 596GNUNET_CONNECTION_create_from_sockaddr (struct GNUNET_SCHEDULER_Handle
597 *sched, int af_family, 597 *sched, int af_family,
598 const struct sockaddr *serv_addr, 598 const struct sockaddr *serv_addr,
599 socklen_t addrlen, size_t maxbuf) 599 socklen_t addrlen, size_t maxbuf)
600{ 600{
601 struct GNUNET_NETWORK_Descriptor *s; 601 struct GNUNET_NETWORK_Descriptor *s;
602 struct GNUNET_NETWORK_ConnectionHandle *ret; 602 struct GNUNET_CONNECTION_Handle *ret;
603 603
604 s = GNUNET_NETWORK_socket_socket (af_family, SOCK_STREAM, 0); 604 s = GNUNET_NETWORK_socket_socket (af_family, SOCK_STREAM, 0);
605 if (s == NULL) 605 if (s == NULL)
@@ -651,7 +651,7 @@ GNUNET_CONNECTION_create_from_sockaddr (struct GNUNET_SCHEDULER_Handle
651 * @return GNUNET_YES if valid, GNUNET_NO otherwise 651 * @return GNUNET_YES if valid, GNUNET_NO otherwise
652 */ 652 */
653int 653int
654GNUNET_CONNECTION_check (struct GNUNET_NETWORK_ConnectionHandle *sock) 654GNUNET_CONNECTION_check (struct GNUNET_CONNECTION_Handle *sock)
655{ 655{
656 if (sock->ai != NULL) 656 if (sock->ai != NULL)
657 return GNUNET_YES; /* still trying to connect */ 657 return GNUNET_YES; /* still trying to connect */
@@ -667,7 +667,7 @@ static void
667destroy_continuation (void *cls, 667destroy_continuation (void *cls,
668 const struct GNUNET_SCHEDULER_TaskContext *tc) 668 const struct GNUNET_SCHEDULER_TaskContext *tc)
669{ 669{
670 struct GNUNET_NETWORK_ConnectionHandle *sock = cls; 670 struct GNUNET_CONNECTION_Handle *sock = cls;
671 GNUNET_NETWORK_TransmitReadyNotify notify; 671 GNUNET_NETWORK_TransmitReadyNotify notify;
672 672
673 if (sock->write_task != GNUNET_SCHEDULER_NO_TASK) 673 if (sock->write_task != GNUNET_SCHEDULER_NO_TASK)
@@ -723,7 +723,7 @@ destroy_continuation (void *cls,
723 * @param sock socket to destroy 723 * @param sock socket to destroy
724 */ 724 */
725void 725void
726GNUNET_CONNECTION_destroy (struct GNUNET_NETWORK_ConnectionHandle *sock) 726GNUNET_CONNECTION_destroy (struct GNUNET_CONNECTION_Handle *sock)
727{ 727{
728 if (sock->write_buffer_off == 0) 728 if (sock->write_buffer_off == 0)
729 sock->ai_pos = NULL; /* if we're still trying to connect and have 729 sock->ai_pos = NULL; /* if we're still trying to connect and have
@@ -740,7 +740,7 @@ GNUNET_CONNECTION_destroy (struct GNUNET_NETWORK_ConnectionHandle *sock)
740 * Tell the receiver callback that a timeout was reached. 740 * Tell the receiver callback that a timeout was reached.
741 */ 741 */
742static void 742static void
743signal_timeout (struct GNUNET_NETWORK_ConnectionHandle *sh) 743signal_timeout (struct GNUNET_CONNECTION_Handle *sh)
744{ 744{
745 GNUNET_NETWORK_Receiver receiver; 745 GNUNET_NETWORK_Receiver receiver;
746 746
@@ -758,7 +758,7 @@ signal_timeout (struct GNUNET_NETWORK_ConnectionHandle *sh)
758 * Tell the receiver callback that we had an IO error. 758 * Tell the receiver callback that we had an IO error.
759 */ 759 */
760static void 760static void
761signal_error (struct GNUNET_NETWORK_ConnectionHandle *sh, int errcode) 761signal_error (struct GNUNET_CONNECTION_Handle *sh, int errcode)
762{ 762{
763 GNUNET_NETWORK_Receiver receiver; 763 GNUNET_NETWORK_Receiver receiver;
764 GNUNET_assert (NULL != (receiver = sh->receiver)); 764 GNUNET_assert (NULL != (receiver = sh->receiver));
@@ -774,7 +774,7 @@ signal_error (struct GNUNET_NETWORK_ConnectionHandle *sh, int errcode)
774static void 774static void
775receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 775receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
776{ 776{
777 struct GNUNET_NETWORK_ConnectionHandle *sh = cls; 777 struct GNUNET_CONNECTION_Handle *sh = cls;
778 struct GNUNET_TIME_Absolute now; 778 struct GNUNET_TIME_Absolute now;
779 char buffer[sh->max]; 779 char buffer[sh->max];
780 ssize_t ret; 780 ssize_t ret;
@@ -847,7 +847,7 @@ RETRY:
847static void 847static void
848receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 848receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
849{ 849{
850 struct GNUNET_NETWORK_ConnectionHandle *sh = cls; 850 struct GNUNET_CONNECTION_Handle *sh = cls;
851 struct GNUNET_TIME_Absolute now; 851 struct GNUNET_TIME_Absolute now;
852 852
853 sh->read_task = GNUNET_SCHEDULER_NO_TASK; 853 sh->read_task = GNUNET_SCHEDULER_NO_TASK;
@@ -911,7 +911,7 @@ receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
911 * @return scheduler task ID used for receiving, GNUNET_SCHEDULER_NO_TASK on error 911 * @return scheduler task ID used for receiving, GNUNET_SCHEDULER_NO_TASK on error
912 */ 912 */
913GNUNET_SCHEDULER_TaskIdentifier 913GNUNET_SCHEDULER_TaskIdentifier
914GNUNET_CONNECTION_receive (struct GNUNET_NETWORK_ConnectionHandle *sock, 914GNUNET_CONNECTION_receive (struct GNUNET_CONNECTION_Handle *sock,
915 size_t max, 915 size_t max,
916 struct GNUNET_TIME_Relative timeout, 916 struct GNUNET_TIME_Relative timeout,
917 GNUNET_NETWORK_Receiver receiver, void *receiver_cls) 917 GNUNET_NETWORK_Receiver receiver, void *receiver_cls)
@@ -942,7 +942,7 @@ GNUNET_CONNECTION_receive (struct GNUNET_NETWORK_ConnectionHandle *sock,
942 * @return closure of the original receiver callback 942 * @return closure of the original receiver callback
943 */ 943 */
944void * 944void *
945GNUNET_CONNECTION_receive_cancel (struct GNUNET_NETWORK_ConnectionHandle *sock, 945GNUNET_CONNECTION_receive_cancel (struct GNUNET_CONNECTION_Handle *sock,
946 GNUNET_SCHEDULER_TaskIdentifier task) 946 GNUNET_SCHEDULER_TaskIdentifier task)
947{ 947{
948 GNUNET_assert (sock->read_task == task); 948 GNUNET_assert (sock->read_task == task);
@@ -961,7 +961,7 @@ GNUNET_CONNECTION_receive_cancel (struct GNUNET_NETWORK_ConnectionHandle *sock,
961 * @return GNUNET_YES if we were able to call notify 961 * @return GNUNET_YES if we were able to call notify
962 */ 962 */
963static int 963static int
964process_notify (struct GNUNET_NETWORK_ConnectionHandle *sock) 964process_notify (struct GNUNET_CONNECTION_Handle *sock)
965{ 965{
966 size_t used; 966 size_t used;
967 size_t avail; 967 size_t avail;
@@ -1010,7 +1010,7 @@ process_notify (struct GNUNET_NETWORK_ConnectionHandle *sock)
1010static void 1010static void
1011transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 1011transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1012{ 1012{
1013 struct GNUNET_NETWORK_ConnectionHandle *sock = cls; 1013 struct GNUNET_CONNECTION_Handle *sock = cls;
1014 GNUNET_NETWORK_TransmitReadyNotify notify; 1014 GNUNET_NETWORK_TransmitReadyNotify notify;
1015 1015
1016#if DEBUG_NETWORK 1016#if DEBUG_NETWORK
@@ -1023,7 +1023,7 @@ transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1023 1023
1024 1024
1025static void 1025static void
1026transmit_error (struct GNUNET_NETWORK_ConnectionHandle *sock) 1026transmit_error (struct GNUNET_CONNECTION_Handle *sock)
1027{ 1027{
1028 if (sock->nth.notify_ready == NULL) 1028 if (sock->nth.notify_ready == NULL)
1029 return; /* nobody to tell about it */ 1029 return; /* nobody to tell about it */
@@ -1044,7 +1044,7 @@ transmit_error (struct GNUNET_NETWORK_ConnectionHandle *sock)
1044static void 1044static void
1045transmit_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 1045transmit_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1046{ 1046{
1047 struct GNUNET_NETWORK_ConnectionHandle *sock = cls; 1047 struct GNUNET_CONNECTION_Handle *sock = cls;
1048 ssize_t ret; 1048 ssize_t ret;
1049 size_t have; 1049 size_t have;
1050 1050
@@ -1164,7 +1164,7 @@ SCHEDULE_WRITE:
1164 * NULL if we are already going to notify someone else (busy) 1164 * NULL if we are already going to notify someone else (busy)
1165 */ 1165 */
1166struct GNUNET_NETWORK_TransmitHandle * 1166struct GNUNET_NETWORK_TransmitHandle *
1167GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_NETWORK_ConnectionHandle 1167GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle
1168 *sock, size_t size, 1168 *sock, size_t size,
1169 struct GNUNET_TIME_Relative timeout, 1169 struct GNUNET_TIME_Relative timeout,
1170 GNUNET_NETWORK_TransmitReadyNotify 1170 GNUNET_NETWORK_TransmitReadyNotify
diff --git a/src/util/server.c b/src/util/server.c
index e8683dce8..ab52b396f 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -312,7 +312,7 @@ process_listen_socket (void *cls,
312 const struct GNUNET_SCHEDULER_TaskContext *tc) 312 const struct GNUNET_SCHEDULER_TaskContext *tc)
313{ 313{
314 struct GNUNET_SERVER_Handle *server = cls; 314 struct GNUNET_SERVER_Handle *server = cls;
315 struct GNUNET_NETWORK_ConnectionHandle *sock; 315 struct GNUNET_CONNECTION_Handle *sock;
316 struct GNUNET_SERVER_Client *client; 316 struct GNUNET_SERVER_Client *client;
317 struct GNUNET_NETWORK_FDSet *r; 317 struct GNUNET_NETWORK_FDSet *r;
318 const struct GNUNET_DISK_FileHandle *shutpipe; 318 const struct GNUNET_DISK_FileHandle *shutpipe;
@@ -877,7 +877,7 @@ sock_receive (void *cls,
877/** 877/**
878 * Wrapper to cancel receiving from a socket. 878 * Wrapper to cancel receiving from a socket.
879 * 879 *
880 * @param cls handle to the GNUNET_NETWORK_ConnectionHandle to cancel 880 * @param cls handle to the GNUNET_CONNECTION_Handle to cancel
881 * @param tc task ID that was returned by GNUNET_CONNECTION_receive 881 * @param tc task ID that was returned by GNUNET_CONNECTION_receive
882 */ 882 */
883static void 883static void
@@ -953,7 +953,7 @@ struct GNUNET_SERVER_Client *
953GNUNET_SERVER_connect_socket (struct 953GNUNET_SERVER_connect_socket (struct
954 GNUNET_SERVER_Handle 954 GNUNET_SERVER_Handle
955 *server, 955 *server,
956 struct GNUNET_NETWORK_ConnectionHandle *connection) 956 struct GNUNET_CONNECTION_Handle *connection)
957{ 957{
958 struct GNUNET_SERVER_Client *client; 958 struct GNUNET_SERVER_Client *client;
959 959
diff --git a/src/util/test_network.c b/src/util/test_network.c
index b628a18db..712167b99 100644
--- a/src/util/test_network.c
+++ b/src/util/test_network.c
@@ -32,11 +32,11 @@
32#define PORT 12435 32#define PORT 12435
33 33
34 34
35static struct GNUNET_NETWORK_ConnectionHandle *csock; 35static struct GNUNET_CONNECTION_Handle *csock;
36 36
37static struct GNUNET_NETWORK_ConnectionHandle *asock; 37static struct GNUNET_CONNECTION_Handle *asock;
38 38
39static struct GNUNET_NETWORK_ConnectionHandle *lsock; 39static struct GNUNET_CONNECTION_Handle *lsock;
40 40
41static size_t sofar; 41static size_t sofar;
42 42
diff --git a/src/util/test_network_addressing.c b/src/util/test_network_addressing.c
index 177810eae..3b96dd06e 100644
--- a/src/util/test_network_addressing.c
+++ b/src/util/test_network_addressing.c
@@ -32,11 +32,11 @@
32#define PORT 12435 32#define PORT 12435
33 33
34 34
35static struct GNUNET_NETWORK_ConnectionHandle *csock; 35static struct GNUNET_CONNECTION_Handle *csock;
36 36
37static struct GNUNET_NETWORK_ConnectionHandle *asock; 37static struct GNUNET_CONNECTION_Handle *asock;
38 38
39static struct GNUNET_NETWORK_ConnectionHandle *lsock; 39static struct GNUNET_CONNECTION_Handle *lsock;
40 40
41static size_t sofar; 41static size_t sofar;
42 42
diff --git a/src/util/test_network_receive_cancel.c b/src/util/test_network_receive_cancel.c
index a9834c0e2..511bf9f22 100644
--- a/src/util/test_network_receive_cancel.c
+++ b/src/util/test_network_receive_cancel.c
@@ -32,11 +32,11 @@
32#define PORT 12435 32#define PORT 12435
33 33
34 34
35static struct GNUNET_NETWORK_ConnectionHandle *csock; 35static struct GNUNET_CONNECTION_Handle *csock;
36 36
37static struct GNUNET_NETWORK_ConnectionHandle *asock; 37static struct GNUNET_CONNECTION_Handle *asock;
38 38
39static struct GNUNET_NETWORK_ConnectionHandle *lsock; 39static struct GNUNET_CONNECTION_Handle *lsock;
40 40
41static struct GNUNET_NETWORK_Descriptor *ls; 41static struct GNUNET_NETWORK_Descriptor *ls;
42 42
diff --git a/src/util/test_network_timeout.c b/src/util/test_network_timeout.c
index ef39ac2a1..69aff307a 100644
--- a/src/util/test_network_timeout.c
+++ b/src/util/test_network_timeout.c
@@ -31,9 +31,9 @@
31 31
32#define PORT 12435 32#define PORT 12435
33 33
34static struct GNUNET_NETWORK_ConnectionHandle *csock; 34static struct GNUNET_CONNECTION_Handle *csock;
35 35
36static struct GNUNET_NETWORK_ConnectionHandle *lsock; 36static struct GNUNET_CONNECTION_Handle *lsock;
37 37
38static struct GNUNET_NETWORK_Descriptor *ls; 38static struct GNUNET_NETWORK_Descriptor *ls;
39 39
diff --git a/src/util/test_network_timeout_no_connect.c b/src/util/test_network_timeout_no_connect.c
index 823216104..c0e1b5e4d 100644
--- a/src/util/test_network_timeout_no_connect.c
+++ b/src/util/test_network_timeout_no_connect.c
@@ -31,7 +31,7 @@
31 31
32#define PORT 13425 32#define PORT 13425
33 33
34static struct GNUNET_NETWORK_ConnectionHandle *csock; 34static struct GNUNET_CONNECTION_Handle *csock;
35 35
36static size_t 36static size_t
37handle_timeout (void *cls, size_t size, void *buf) 37handle_timeout (void *cls, size_t size, void *buf)
diff --git a/src/util/test_network_transmit_cancel.c b/src/util/test_network_transmit_cancel.c
index edc45bb9f..351a7d444 100644
--- a/src/util/test_network_transmit_cancel.c
+++ b/src/util/test_network_transmit_cancel.c
@@ -46,7 +46,7 @@ task_transmit_cancel (void *cls,
46{ 46{
47 int *ok = cls; 47 int *ok = cls;
48 struct GNUNET_NETWORK_TransmitHandle *th; 48 struct GNUNET_NETWORK_TransmitHandle *th;
49 struct GNUNET_NETWORK_ConnectionHandle *csock; 49 struct GNUNET_CONNECTION_Handle *csock;
50 50
51 csock = GNUNET_CONNECTION_create_from_connect (tc->sched, 51 csock = GNUNET_CONNECTION_create_from_connect (tc->sched,
52 "localhost", PORT, 1024); 52 "localhost", PORT, 1024);